[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Usage of __P vs PARAMS in histfile.c
From: |
Evan Gates |
Subject: |
Usage of __P vs PARAMS in histfile.c |
Date: |
Wed, 8 Apr 2015 08:25:02 -0700 |
I tried compiling bash with musl-gcc and failed due to the __P macros
in histfile.c
While digging around it appears that __P is defined in stdc.h, but
histfile.c indirectly includes rlstdc.h istead. rlstdc.h defines an
identical macro with the name PARAMS instead of __P
In my extraordinarily limited testing the switch from __P to PARAMS
seems to work. That being said I'm not sure why the usage of __P
worked with gcc but not musl-gcc yet, maybe someone more familiar with
the code could pitch in and let me know if I've done something wrong.
I've attached the patch against the devel branch HEAD.
-emg
bash-devel-PARAMS.diff
Description: Text document
- Usage of __P vs PARAMS in histfile.c,
Evan Gates <=