aboutsummaryrefslogtreecommitdiff
path: root/libio
diff options
context:
space:
mode:
Diffstat (limited to 'libio')
-rw-r--r--libio/oldiofdopen.c4
-rw-r--r--libio/oldtmpfile.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/libio/oldiofdopen.c b/libio/oldiofdopen.c
index e9c18d932b..0e015226cc 100644
--- a/libio/oldiofdopen.c
+++ b/libio/oldiofdopen.c
@@ -25,13 +25,13 @@
#define _IO_USE_OLD_IO_FILE
#ifdef __STDC__
-#include <stdlib.h>
+# include <stdlib.h>
#endif
#include "libioP.h"
#include <fcntl.h>
#ifndef _IO_fcntl
-#define _IO_fcntl fcntl
+# define _IO_fcntl __fcntl
#endif
_IO_FILE *
diff --git a/libio/oldtmpfile.c b/libio/oldtmpfile.c
index 72437fea0f..40395bf9c2 100644
--- a/libio/oldtmpfile.c
+++ b/libio/oldtmpfile.c
@@ -43,7 +43,7 @@ __old_tmpfile (void)
(void) remove (buf);
if ((f = _IO_old_fdopen (fd, "w+b")) == NULL)
- close (fd);
+ __close (fd);
return f;
}