aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/unix
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/unix')
-rw-r--r--sysdeps/unix/sysv/linux/dl-osinfo.h1
-rw-r--r--sysdeps/unix/sysv/linux/init-first.c7
2 files changed, 1 insertions, 7 deletions
diff --git a/sysdeps/unix/sysv/linux/dl-osinfo.h b/sysdeps/unix/sysv/linux/dl-osinfo.h
index 1510b5b8c7..b60a202ff0 100644
--- a/sysdeps/unix/sysv/linux/dl-osinfo.h
+++ b/sysdeps/unix/sysv/linux/dl-osinfo.h
@@ -18,6 +18,7 @@
02111-1307 USA. */
#include <string.h>
+#include <fcntl.h>
#include <sys/sysctl.h>
#include <sys/utsname.h>
#include "kernel-features.h"
diff --git a/sysdeps/unix/sysv/linux/init-first.c b/sysdeps/unix/sysv/linux/init-first.c
index 65e275cfe1..870331f4e4 100644
--- a/sysdeps/unix/sysv/linux/init-first.c
+++ b/sysdeps/unix/sysv/linux/init-first.c
@@ -28,9 +28,6 @@
#include <libc-internal.h>
#include <ldsodefs.h>
-#ifndef SHARED
-# include "dl-osinfo.h"
-#endif
/* The function is called from assembly stubs the compiler can't see. */
static void init (int, char **, char **) __attribute__ ((unused));
@@ -57,10 +54,6 @@ init (int argc, char **argv, char **envp)
/* Make sure we don't initialize twice. */
if (!__libc_multiple_libcs)
{
-#ifndef SHARED
- DL_SYSDEP_OSCHECK (__libc_fatal);
-#endif
-
/* Set the FPU control word to the proper default value if the
kernel would use a different value. (In a static program we
don't have this information.) */