mirror of
https://github.com/ipmitool/ipmitool.git
synced 2026-06-29 16:51:35 +00:00
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.
This commit is contained in:
@@ -30,6 +30,11 @@
|
||||
* EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
|
||||
*/
|
||||
#define _POSIX_SOURCE
|
||||
#define /* glibc 2.19 and earlier */ _BSD_SOURCE || \
|
||||
/* Since glibc 2.20 */_DEFAULT_SOURCE || \
|
||||
_XOPEN_SOURCE >= 500 || \
|
||||
_XOPEN_SOURCE && _XOPEN_SOURCE_EXTENDED || \
|
||||
/* Since glibc 2.10: */ _POSIX_C_SOURCE >= 200112L \
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <sys/stat.h>
|
||||
|
||||
Reference in New Issue
Block a user