summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 6f29ec3)
raw | patch | inline | side by side (parent: 6f29ec3)
author | Sebastian Harl <sh@tokkee.org> | |
Thu, 25 Feb 2016 20:37:55 +0000 (21:37 +0100) | ||
committer | Sebastian Harl <sh@tokkee.org> | |
Thu, 25 Feb 2016 20:37:55 +0000 (21:37 +0100) |
That is, add some missing headers and bump POSIX compliance to POSIX:2008
which will ensure that 'struct timespec' is defined without funny tricks.
which will ensure that 'struct timespec' is defined without funny tricks.
configure.ac | patch | blob | history | |
src/tools/sysdb/main.c | patch | blob | history | |
src/tools/sysdbd/main.c | patch | blob | history | |
src/utils/os.c | patch | blob | history |
diff --git a/configure.ac b/configure.ac
index 85e39c36c1a440164a3e5b31950a329d1e40bf91..c39c4af2fc726a3779b641954e054781a9d76430 100644 (file)
--- a/configure.ac
+++ b/configure.ac
if test "x$enable_standards" = "xyes"; then
AC_DEFINE([_ISOC99_SOURCE], 1,
[Define to enforce ISO/IEC 9899:1999 (C99) compliance.])
- AC_DEFINE([_POSIX_C_SOURCE], 200112L,
- [Define to enforce IEEE 1003.1-2001 (POSIX:2001) compliance.])
+ AC_DEFINE([_POSIX_C_SOURCE], 200809L,
+ [Define to enforce IEEE 1003.1-2008 (POSIX:2008) compliance.])
AC_DEFINE([_XOPEN_SOURCE], 700,
[Define to enforce X/Open 7 (XSI) compliance.])
AC_DEFINE([_REENTRANT], 1,
diff --git a/src/tools/sysdb/main.c b/src/tools/sysdb/main.c
index e4922e9b939587c914fd7d28ef172ce0fa4a59fb..f502027f04353e115dd427cdd429816569a16116 100644 (file)
--- a/src/tools/sysdb/main.c
+++ b/src/tools/sysdb/main.c
#include "utils/ssl.h"
#include <errno.h>
+#include <time.h>
#if HAVE_LIBGEN_H
# include <libgen.h>
index 759eee2f5652ebee72c9131d22a05ddbf8f704b2..7bfbaa650c2888c5c30e183c89eb873768c5c8d3 100644 (file)
--- a/src/tools/sysdbd/main.c
+++ b/src/tools/sysdbd/main.c
#endif /* ! HAVE_LIBGEN_H */
#include <errno.h>
+#include <time.h>
#include <sys/stat.h>
#include <fcntl.h>
diff --git a/src/utils/os.c b/src/utils/os.c
index 2b6a51460a67f89122dbee5ec7d75d70e2b3fe82..8ab52c75bc023c2bc5b68ca61d2cc0f13ce0f916 100644 (file)
--- a/src/utils/os.c
+++ b/src/utils/os.c
#include <errno.h>
#include <sys/types.h>
+#include <sys/select.h>
#include <sys/socket.h>
#include <sys/stat.h>
+#include <sys/time.h>
+#include <sys/types.h>
#include <dirent.h>
#include <libgen.h>
#include <netdb.h>
#include <pwd.h>
+#include <time.h>
/*
* public API