summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--io/xmknodat.c1
-rw-r--r--misc/futimesat.c4
-rw-r--r--stdio-common/renameat.c2
3 files changed, 3 insertions, 4 deletions
diff --git a/io/xmknodat.c b/io/xmknodat.c
index 56d88c7b0f..48dc1b2630 100644
--- a/io/xmknodat.c
+++ b/io/xmknodat.c
@@ -18,6 +18,7 @@
 
 #include <errno.h>
 #include <fcntl.h>
+#include <stddef.h>
 #include <sys/types.h>
 #include <sys/stat.h>
 
diff --git a/misc/futimesat.c b/misc/futimesat.c
index 74ccd876e6..bf16ce8de0 100644
--- a/misc/futimesat.c
+++ b/misc/futimesat.c
@@ -42,7 +42,5 @@ futimesat (fd, file, tvp)
   return -1;
 }
 
-weak_alias (__utimes, utimes)
-
-stub_warning (utimes)
+stub_warning (futimesat)
 #include <stub-tag.h>
diff --git a/stdio-common/renameat.c b/stdio-common/renameat.c
index e8629098df..e09c5933ed 100644
--- a/stdio-common/renameat.c
+++ b/stdio-common/renameat.c
@@ -29,7 +29,7 @@ renameat (oldfd, old, newfd, new)
      int newfd;
      const char *new;
 {
-  if ((oldfd < 0 & oldfd !_ AT_FDCWD) || (newfd < 0 && newfd != AT_FDCWD))
+  if ((oldfd < 0 & oldfd != AT_FDCWD) || (newfd < 0 && newfd != AT_FDCWD))
     {
       __set_errno (EBADF);
       return -1;