]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
hurd: fix warnings
authorSamuel Thibault <samuel.thibault@ens-lyon.org>
Sat, 27 Jan 2018 15:45:10 +0000 (16:45 +0100)
committerSamuel Thibault <samuel.thibault@ens-lyon.org>
Sat, 27 Jan 2018 15:45:10 +0000 (16:45 +0100)
* sysdeps/generic/not-cancel.h: Include <fcntl.h>, <unistd.h>,
<sys/wait.h>, <time.h>, <sys/uio.h>.
(NOT_CANCEL_H): Add inclusion guard.

ChangeLog
sysdeps/generic/not-cancel.h

index 9bdd0a48bc9423d1347db60b10781e7049b81743..f9770b1554aca812bb1d3976edbe3340eef43979 100644 (file)
--- 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>
 
index 631216ee4a7199823c2f5afefe35842c8e6d40ab..19ad8cbc4c475af2856e1b643a13471f71addff4 100644 (file)
    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  */