aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2018-01-27 16:45:10 +0100
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2018-01-27 16:45:10 +0100
commitb29848b99b2b9913e2c0d8760a224cdb98876d4b (patch)
treeac04cb05cac7418ed8530d439f9dfc4acf299a9d
parent3538a4b6c3f7831f57462bef6b6146638a11b97c (diff)
downloadglibc-b29848b99b2b9913e2c0d8760a224cdb98876d4b.tar
glibc-b29848b99b2b9913e2c0d8760a224cdb98876d4b.tar.gz
glibc-b29848b99b2b9913e2c0d8760a224cdb98876d4b.tar.bz2
glibc-b29848b99b2b9913e2c0d8760a224cdb98876d4b.zip
hurd: fix warnings
* sysdeps/generic/not-cancel.h: Include <fcntl.h>, <unistd.h>, <sys/wait.h>, <time.h>, <sys/uio.h>. (NOT_CANCEL_H): Add inclusion guard.
-rw-r--r--ChangeLog3
-rw-r--r--sysdeps/generic/not-cancel.h11
2 files changed, 14 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 9bdd0a48bc..f9770b1554 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -4,6 +4,9 @@
* sysdeps/mach/hurd/profil.c: Reuse `a' variable instead of introducing
a `c' variable.
* resolv/res-close.c: Include <stdlib.h>.
+ * sysdeps/generic/not-cancel.h: Include <fcntl.h>, <unistd.h>,
+ <sys/wait.h>, <time.h>, <sys/uio.h>.
+ (NOT_CANCEL_H): Add inclusion guard.
2018-01-27 James Clarke <jrtc27@jrtc27.com>
diff --git a/sysdeps/generic/not-cancel.h b/sysdeps/generic/not-cancel.h
index 631216ee4a..19ad8cbc4c 100644
--- a/sysdeps/generic/not-cancel.h
+++ b/sysdeps/generic/not-cancel.h
@@ -17,6 +17,15 @@
License along with the GNU C Library; if not, see
<http://www.gnu.org/licenses/>. */
+#ifndef NOT_CANCEL_H
+# define NOT_CANCEL_H
+
+#include <fcntl.h>
+#include <unistd.h>
+#include <sys/wait.h>
+#include <time.h>
+#include <sys/uio.h>
+
/* By default we have none. Map the name to the normal functions. */
#define __open_nocancel(...) \
__open (__VA_ARGS__)
@@ -44,3 +53,5 @@
__nanosleep (requested_time, remaining)
#define __fcntl_nocancel(fd, cmd, ...) \
__fcntl (fd, cmd, __VA_ARGS__)
+
+#endif /* NOT_CANCEL_H */