diff options
author | Zdenek Styblik <stybla@turnovfree.net> | 2016-03-13 11:40:10 +0100 |
---|---|---|
committer | Zdenek Styblik <stybla@turnovfree.net> | 2016-03-13 11:40:10 +0100 |
commit | eb5c73c04e0e720cc6a763725796841aa079a8af (patch) | |
tree | 7901cf2f7ca584494eb2166b0bb0b0152efe8f31 /lib/ipmi_user.c | |
parent | 55b024f5736e83c4b9fce625aa0c918484253aa5 (diff) | |
download | ipmitool-eb5c73c04e0e720cc6a763725796841aa079a8af.tar.gz |
ID:355 - Add macros and #include and reduce number of warnings
Commit adds macros and #include in order to bring down the number of `warning:
implicit declaration of function 'X' [-Wimplicit-function-declaration]`
warnings.
Diffstat (limited to 'lib/ipmi_user.c')
-rw-r--r-- | lib/ipmi_user.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/ipmi_user.c b/lib/ipmi_user.c index e339c2a..2780e61 100644 --- a/lib/ipmi_user.c +++ b/lib/ipmi_user.c @@ -29,6 +29,10 @@ * LIABILITY, ARISING OUT OF THE USE OF OR INABILITY TO USE THIS SOFTWARE, * EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. */ +#define _BSD_SOURCE || \ + (_XOPEN_SOURCE >= 500 || \ + _XOPEN_SOURCE && _XOPEN_SOURCE_EXTENDED) && \ + !(_POSIX_C_SOURCE >= 200112L || _XOPEN_SOURCE >= 600) #include <stdlib.h> #include <string.h> |