summaryrefslogtreecommitdiff
path: root/lib/ipmi_user.c
diff options
context:
space:
mode:
authorZdenek Styblik <stybla@turnovfree.net>2016-03-13 11:40:10 +0100
committerZdenek Styblik <stybla@turnovfree.net>2016-03-13 11:40:10 +0100
commiteb5c73c04e0e720cc6a763725796841aa079a8af (patch)
tree7901cf2f7ca584494eb2166b0bb0b0152efe8f31 /lib/ipmi_user.c
parent55b024f5736e83c4b9fce625aa0c918484253aa5 (diff)
downloadipmitool-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.c4
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>