summaryrefslogtreecommitdiffstats
path: root/cpukit
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2001-01-08 18:26:44 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2001-01-08 18:26:44 +0000
commit9c49db4d6af57d99c60743dd41c3c6af427d3bb2 (patch)
tree0424d246fac68c0a7567e84b6f63c5d3de2d66c3 /cpukit
parentac5c8c7a189c55dd80c6abf122989101a1227c7b (diff)
downloadrtems-9c49db4d6af57d99c60743dd41c3c6af427d3bb2.tar.bz2
2001-01-08 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* configure.in: Add libc/config.h * libc/Makefile.am: Add INCLUDES += -I. to pickup config.h * libc/.cvsignore: Add config.h and stamp-h * libc/*.c: Add config.h support.
Diffstat (limited to 'cpukit')
-rw-r--r--cpukit/libcsupport/src/__brk.c4
-rw-r--r--cpukit/libcsupport/src/__getpid.c4
-rw-r--r--cpukit/libcsupport/src/__gettod.c4
-rw-r--r--cpukit/libcsupport/src/__sbrk.c4
-rw-r--r--cpukit/libcsupport/src/__times.c4
-rw-r--r--cpukit/libcsupport/src/access.c4
-rw-r--r--cpukit/libcsupport/src/assoc.c4
-rw-r--r--cpukit/libcsupport/src/assocnamebad.c4
-rw-r--r--cpukit/libcsupport/src/base_fs.c4
-rw-r--r--cpukit/libcsupport/src/cfgetispeed.c4
-rw-r--r--cpukit/libcsupport/src/cfgetospeed.c4
-rw-r--r--cpukit/libcsupport/src/cfsetispeed.c4
-rw-r--r--cpukit/libcsupport/src/cfsetospeed.c4
-rw-r--r--cpukit/libcsupport/src/chdir.c4
-rw-r--r--cpukit/libcsupport/src/chmod.c4
-rw-r--r--cpukit/libcsupport/src/chown.c4
-rw-r--r--cpukit/libcsupport/src/close.c4
-rw-r--r--cpukit/libcsupport/src/closedir.c5
-rw-r--r--cpukit/libcsupport/src/creat.c4
-rw-r--r--cpukit/libcsupport/src/ctermid.c4
-rw-r--r--cpukit/libcsupport/src/dup.c4
-rw-r--r--cpukit/libcsupport/src/dup2.c4
-rw-r--r--cpukit/libcsupport/src/error.c3
-rw-r--r--cpukit/libcsupport/src/eval.c4
-rw-r--r--cpukit/libcsupport/src/fchdir.c4
-rw-r--r--cpukit/libcsupport/src/fchmod.c4
-rw-r--r--cpukit/libcsupport/src/fcntl.c4
-rw-r--r--cpukit/libcsupport/src/fdatasync.c4
-rw-r--r--cpukit/libcsupport/src/fpathconf.c4
-rw-r--r--cpukit/libcsupport/src/fs_null_handlers.c4
-rw-r--r--cpukit/libcsupport/src/fstat.c4
-rw-r--r--cpukit/libcsupport/src/fsync.c4
-rw-r--r--cpukit/libcsupport/src/ftruncate.c4
-rw-r--r--cpukit/libcsupport/src/getcwd.c4
-rw-r--r--cpukit/libcsupport/src/getdents.c4
-rw-r--r--cpukit/libcsupport/src/getgrent.c3
-rw-r--r--cpukit/libcsupport/src/getpwent.c4
-rw-r--r--cpukit/libcsupport/src/gxx_wrappers.c4
-rw-r--r--cpukit/libcsupport/src/hosterr.c4
-rw-r--r--cpukit/libcsupport/src/ioctl.c4
-rw-r--r--cpukit/libcsupport/src/isatty.c4
-rw-r--r--cpukit/libcsupport/src/libio.c4
-rw-r--r--cpukit/libcsupport/src/libio_sockets.c4
-rw-r--r--cpukit/libcsupport/src/link.c4
-rw-r--r--cpukit/libcsupport/src/lseek.c4
-rw-r--r--cpukit/libcsupport/src/malloc.c4
-rw-r--r--cpukit/libcsupport/src/mallocfreespace.c4
-rw-r--r--cpukit/libcsupport/src/mkdir.c4
-rw-r--r--cpukit/libcsupport/src/mkfifo.c4
-rw-r--r--cpukit/libcsupport/src/mknod.c4
-rw-r--r--cpukit/libcsupport/src/mount.c4
-rw-r--r--cpukit/libcsupport/src/newlibc.c6
-rw-r--r--cpukit/libcsupport/src/no_libc.c3
-rw-r--r--cpukit/libcsupport/src/no_posix.c4
-rw-r--r--cpukit/libcsupport/src/open.c4
-rw-r--r--cpukit/libcsupport/src/opendir.c4
-rw-r--r--cpukit/libcsupport/src/pathconf.c4
-rw-r--r--cpukit/libcsupport/src/pipe.c4
-rw-r--r--cpukit/libcsupport/src/printk.c3
-rw-r--r--cpukit/libcsupport/src/read.c4
-rw-r--r--cpukit/libcsupport/src/readdir.c4
-rw-r--r--cpukit/libcsupport/src/readlink.c4
-rw-r--r--cpukit/libcsupport/src/rewinddir.c4
-rw-r--r--cpukit/libcsupport/src/rmdir.c4
-rw-r--r--cpukit/libcsupport/src/scandir.c4
-rw-r--r--cpukit/libcsupport/src/seekdir.c4
-rw-r--r--cpukit/libcsupport/src/stat.c4
-rw-r--r--cpukit/libcsupport/src/symlink.c4
-rw-r--r--cpukit/libcsupport/src/tcdrain.c4
-rw-r--r--cpukit/libcsupport/src/tcflow.c4
-rw-r--r--cpukit/libcsupport/src/tcflush.c4
-rw-r--r--cpukit/libcsupport/src/tcgetattr.c4
-rw-r--r--cpukit/libcsupport/src/tcgetprgrp.c4
-rw-r--r--cpukit/libcsupport/src/tcsendbreak.c4
-rw-r--r--cpukit/libcsupport/src/tcsetattr.c4
-rw-r--r--cpukit/libcsupport/src/tcsetpgrp.c4
-rw-r--r--cpukit/libcsupport/src/telldir.c4
-rw-r--r--cpukit/libcsupport/src/termios.c4
-rw-r--r--cpukit/libcsupport/src/termiosinitialize.c4
-rw-r--r--cpukit/libcsupport/src/termiosreserveresources.c4
-rw-r--r--cpukit/libcsupport/src/truncate.c4
-rw-r--r--cpukit/libcsupport/src/ttyname.c4
-rw-r--r--cpukit/libcsupport/src/ttyname_r.c4
-rw-r--r--cpukit/libcsupport/src/umask.c4
-rw-r--r--cpukit/libcsupport/src/unixlibc.c4
-rw-r--r--cpukit/libcsupport/src/unlink.c4
-rw-r--r--cpukit/libcsupport/src/unmount.c4
-rw-r--r--cpukit/libcsupport/src/utime.c4
-rw-r--r--cpukit/libcsupport/src/write.c4
89 files changed, 353 insertions, 2 deletions
diff --git a/cpukit/libcsupport/src/__brk.c b/cpukit/libcsupport/src/__brk.c
index 4e5a7fcd22..296b0e3ca7 100644
--- a/cpukit/libcsupport/src/__brk.c
+++ b/cpukit/libcsupport/src/__brk.c
@@ -13,6 +13,10 @@
* $Id$
*/
+#if HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#include <rtems.h>
#if !defined(RTEMS_UNIX)
diff --git a/cpukit/libcsupport/src/__getpid.c b/cpukit/libcsupport/src/__getpid.c
index 32353b717d..54a7c980e0 100644
--- a/cpukit/libcsupport/src/__getpid.c
+++ b/cpukit/libcsupport/src/__getpid.c
@@ -5,6 +5,10 @@
* $Id$
*/
+#if HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#include <unistd.h>
pid_t __getpid(void)
diff --git a/cpukit/libcsupport/src/__gettod.c b/cpukit/libcsupport/src/__gettod.c
index 6c30e40bfb..96e44802dc 100644
--- a/cpukit/libcsupport/src/__gettod.c
+++ b/cpukit/libcsupport/src/__gettod.c
@@ -11,6 +11,10 @@
* $Id$
*/
+#if HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#define __RTEMS_VIOLATE_KERNEL_VISIBILITY__
#include <rtems.h>
diff --git a/cpukit/libcsupport/src/__sbrk.c b/cpukit/libcsupport/src/__sbrk.c
index f09188c571..87753d7016 100644
--- a/cpukit/libcsupport/src/__sbrk.c
+++ b/cpukit/libcsupport/src/__sbrk.c
@@ -13,6 +13,10 @@
* $Id$
*/
+#if HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#include <rtems.h>
#if !defined(RTEMS_UNIX)
diff --git a/cpukit/libcsupport/src/__times.c b/cpukit/libcsupport/src/__times.c
index 49bd64042b..eab408e8d3 100644
--- a/cpukit/libcsupport/src/__times.c
+++ b/cpukit/libcsupport/src/__times.c
@@ -11,6 +11,10 @@
* $Id$
*/
+#if HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#include <rtems.h>
#include <sys/times.h>
diff --git a/cpukit/libcsupport/src/access.c b/cpukit/libcsupport/src/access.c
index 7e25fdfc30..7540cd8d55 100644
--- a/cpukit/libcsupport/src/access.c
+++ b/cpukit/libcsupport/src/access.c
@@ -11,6 +11,10 @@
* $Id$
*/
+#if HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#include <unistd.h>
#include <fcntl.h>
#include <sys/stat.h>
diff --git a/cpukit/libcsupport/src/assoc.c b/cpukit/libcsupport/src/assoc.c
index 845d9eb522..3e4fb21211 100644
--- a/cpukit/libcsupport/src/assoc.c
+++ b/cpukit/libcsupport/src/assoc.c
@@ -5,6 +5,10 @@
* $Id$
*/
+#if HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#include <rtems.h>
#include <rtems/assoc.h>
diff --git a/cpukit/libcsupport/src/assocnamebad.c b/cpukit/libcsupport/src/assocnamebad.c
index 7bb48c9a55..4a6a52d6c6 100644
--- a/cpukit/libcsupport/src/assocnamebad.c
+++ b/cpukit/libcsupport/src/assocnamebad.c
@@ -5,6 +5,10 @@
* $Id$
*/
+#if HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#include <rtems.h>
#include <rtems/assoc.h>
diff --git a/cpukit/libcsupport/src/base_fs.c b/cpukit/libcsupport/src/base_fs.c
index cb888cab2c..93c5a60d85 100644
--- a/cpukit/libcsupport/src/base_fs.c
+++ b/cpukit/libcsupport/src/base_fs.c
@@ -11,6 +11,10 @@
* $Id$
*/
+#if HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#include <rtems.h>
#include <rtems/libio.h>
#include <rtems/libio_.h>
diff --git a/cpukit/libcsupport/src/cfgetispeed.c b/cpukit/libcsupport/src/cfgetispeed.c
index 43a8c97137..964b51ccc4 100644
--- a/cpukit/libcsupport/src/cfgetispeed.c
+++ b/cpukit/libcsupport/src/cfgetispeed.c
@@ -11,6 +11,10 @@
* $Id$
*/
+#if HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#include <rtems.h>
#if defined(RTEMS_NEWLIB)
diff --git a/cpukit/libcsupport/src/cfgetospeed.c b/cpukit/libcsupport/src/cfgetospeed.c
index 460b47b498..955791cbe6 100644
--- a/cpukit/libcsupport/src/cfgetospeed.c
+++ b/cpukit/libcsupport/src/cfgetospeed.c
@@ -11,6 +11,10 @@
* $Id$
*/
+#if HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#include <rtems.h>
#if defined(RTEMS_NEWLIB)
diff --git a/cpukit/libcsupport/src/cfsetispeed.c b/cpukit/libcsupport/src/cfsetispeed.c
index 9e195a0a90..c26a7075e1 100644
--- a/cpukit/libcsupport/src/cfsetispeed.c
+++ b/cpukit/libcsupport/src/cfsetispeed.c
@@ -11,6 +11,10 @@
* $Id$
*/
+#if HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#include <rtems.h>
#if defined(RTEMS_NEWLIB)
diff --git a/cpukit/libcsupport/src/cfsetospeed.c b/cpukit/libcsupport/src/cfsetospeed.c
index 36f2cf8ff6..0d8a553353 100644
--- a/cpukit/libcsupport/src/cfsetospeed.c
+++ b/cpukit/libcsupport/src/cfsetospeed.c
@@ -11,6 +11,10 @@
* $Id$
*/
+#if HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#include <rtems.h>
#if defined(RTEMS_NEWLIB)
diff --git a/cpukit/libcsupport/src/chdir.c b/cpukit/libcsupport/src/chdir.c
index 722fafc4dd..ca20919e93 100644
--- a/cpukit/libcsupport/src/chdir.c
+++ b/cpukit/libcsupport/src/chdir.c
@@ -11,6 +11,10 @@
* $Id$
*/
+#if HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#include <rtems.h>
#include <unistd.h>
diff --git a/cpukit/libcsupport/src/chmod.c b/cpukit/libcsupport/src/chmod.c
index d8f7e53ac3..f4f82a823c 100644
--- a/cpukit/libcsupport/src/chmod.c
+++ b/cpukit/libcsupport/src/chmod.c
@@ -11,6 +11,10 @@
* $Id$
*/
+#if HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#include <rtems.h>
#include <rtems/libio.h>
#include <sys/stat.h>
diff --git a/cpukit/libcsupport/src/chown.c b/cpukit/libcsupport/src/chown.c
index 2c1376d85e..78a22ec17b 100644
--- a/cpukit/libcsupport/src/chown.c
+++ b/cpukit/libcsupport/src/chown.c
@@ -11,6 +11,10 @@
* $Id$
*/
+#if HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#include <sys/stat.h>
#include <errno.h>
diff --git a/cpukit/libcsupport/src/close.c b/cpukit/libcsupport/src/close.c
index 2b1fde2d48..00fa8872a2 100644
--- a/cpukit/libcsupport/src/close.c
+++ b/cpukit/libcsupport/src/close.c
@@ -11,6 +11,10 @@
* $Id$
*/
+#if HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#include <rtems/libio_.h>
int close(
diff --git a/cpukit/libcsupport/src/closedir.c b/cpukit/libcsupport/src/closedir.c
index 3ec944436e..0d58f0e64f 100644
--- a/cpukit/libcsupport/src/closedir.c
+++ b/cpukit/libcsupport/src/closedir.c
@@ -40,13 +40,16 @@
static char sccsid[] = "@(#)closedir.c 5.9 (Berkeley) 2/23/91";
#endif /* LIBC_SCCS and not lint */
+#if HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#include <sys/types.h>
#include <dirent.h>
#include <stdlib.h>
#include <unistd.h>
#include <errno.h>
-
#include <rtems/libio_.h>
/*
diff --git a/cpukit/libcsupport/src/creat.c b/cpukit/libcsupport/src/creat.c
index e487ea16ec..ed7a872d4a 100644
--- a/cpukit/libcsupport/src/creat.c
+++ b/cpukit/libcsupport/src/creat.c
@@ -4,6 +4,10 @@
/* creat() "system call" */
+#if HAVE_CONFIG_H
+#include "config.h"
+#endif
+
/* This is needed by f2c and therefore the SPEC benchmarks. */
#include <fcntl.h>
diff --git a/cpukit/libcsupport/src/ctermid.c b/cpukit/libcsupport/src/ctermid.c
index 63fb610f43..4e8f28a6f3 100644
--- a/cpukit/libcsupport/src/ctermid.c
+++ b/cpukit/libcsupport/src/ctermid.c
@@ -11,6 +11,10 @@
* $Id$
*/
+#if HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#include <rtems.h>
#if defined(RTEMS_NEWLIB)
diff --git a/cpukit/libcsupport/src/dup.c b/cpukit/libcsupport/src/dup.c
index 902c70756a..2edce9c6ff 100644
--- a/cpukit/libcsupport/src/dup.c
+++ b/cpukit/libcsupport/src/dup.c
@@ -11,6 +11,10 @@
* $Id$
*/
+#if HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#include <unistd.h>
#include <fcntl.h>
diff --git a/cpukit/libcsupport/src/dup2.c b/cpukit/libcsupport/src/dup2.c
index 6931933474..af4ed99fb5 100644
--- a/cpukit/libcsupport/src/dup2.c
+++ b/cpukit/libcsupport/src/dup2.c
@@ -11,6 +11,10 @@
* $Id$
*/
+#if HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#include <unistd.h>
#include <fcntl.h>
diff --git a/cpukit/libcsupport/src/error.c b/cpukit/libcsupport/src/error.c
index 246a630222..fff95ce80c 100644
--- a/cpukit/libcsupport/src/error.c
+++ b/cpukit/libcsupport/src/error.c
@@ -5,6 +5,9 @@
* $Id$
*/
+#if HAVE_CONFIG_H
+#include "config.h"
+#endif
/*
* These routines provide general purpose error reporting.
diff --git a/cpukit/libcsupport/src/eval.c b/cpukit/libcsupport/src/eval.c
index 0bcc8e8194..13ae2b6d76 100644
--- a/cpukit/libcsupport/src/eval.c
+++ b/cpukit/libcsupport/src/eval.c
@@ -13,6 +13,10 @@
* $Id$
*/
+#if HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#include <rtems.h>
#include <rtems/libio_.h>
diff --git a/cpukit/libcsupport/src/fchdir.c b/cpukit/libcsupport/src/fchdir.c
index a937088b31..ecef51950c 100644
--- a/cpukit/libcsupport/src/fchdir.c
+++ b/cpukit/libcsupport/src/fchdir.c
@@ -11,6 +11,10 @@
* $Id$
*/
+#if HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#include <unistd.h>
#include <sys/stat.h>
#include <errno.h>
diff --git a/cpukit/libcsupport/src/fchmod.c b/cpukit/libcsupport/src/fchmod.c
index 9cb773831f..989b3ba991 100644
--- a/cpukit/libcsupport/src/fchmod.c
+++ b/cpukit/libcsupport/src/fchmod.c
@@ -11,6 +11,10 @@
* $Id$
*/
+#if HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#include <unistd.h>
#include <sys/stat.h>
#include <errno.h>
diff --git a/cpukit/libcsupport/src/fcntl.c b/cpukit/libcsupport/src/fcntl.c
index 521fb93f33..cd31374030 100644
--- a/cpukit/libcsupport/src/fcntl.c
+++ b/cpukit/libcsupport/src/fcntl.c
@@ -11,6 +11,10 @@
* $Id$
*/
+#if HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#include <unistd.h>
#include <fcntl.h>
#include <errno.h>
diff --git a/cpukit/libcsupport/src/fdatasync.c b/cpukit/libcsupport/src/fdatasync.c
index a45388f019..55f26401b2 100644
--- a/cpukit/libcsupport/src/fdatasync.c
+++ b/cpukit/libcsupport/src/fdatasync.c
@@ -11,6 +11,10 @@
* $Id$
*/
+#if HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#include <unistd.h>
#include <rtems/libio_.h>
diff --git a/cpukit/libcsupport/src/fpathconf.c b/cpukit/libcsupport/src/fpathconf.c
index bfcb4cd417..063baff38a 100644
--- a/cpukit/libcsupport/src/fpathconf.c
+++ b/cpukit/libcsupport/src/fpathconf.c
@@ -11,6 +11,10 @@
* $Id$
*/
+#if HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#include <rtems/libio_.h>
#include <unistd.h>
diff --git a/cpukit/libcsupport/src/fs_null_handlers.c b/cpukit/libcsupport/src/fs_null_handlers.c
index c127839d3b..f9a08d0aca 100644
--- a/cpukit/libcsupport/src/fs_null_handlers.c
+++ b/cpukit/libcsupport/src/fs_null_handlers.c
@@ -11,6 +11,10 @@
* $Id$
*/
+#if HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#include <errno.h>
#include <rtems/libio.h>
diff --git a/cpukit/libcsupport/src/fstat.c b/cpukit/libcsupport/src/fstat.c
index 11d3ecb4d7..bdc994253d 100644
--- a/cpukit/libcsupport/src/fstat.c
+++ b/cpukit/libcsupport/src/fstat.c
@@ -11,6 +11,10 @@
* $Id$
*/
+#if HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#include <sys/stat.h>
#include <unistd.h>
#include <string.h>
diff --git a/cpukit/libcsupport/src/fsync.c b/cpukit/libcsupport/src/fsync.c
index 7a4b384eba..f02f84414b 100644
--- a/cpukit/libcsupport/src/fsync.c
+++ b/cpukit/libcsupport/src/fsync.c
@@ -11,6 +11,10 @@
* $Id$
*/
+#if HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#include <unistd.h>
#include <rtems/libio_.h>
diff --git a/cpukit/libcsupport/src/ftruncate.c b/cpukit/libcsupport/src/ftruncate.c
index 436a969d0f..22ce26faf5 100644
--- a/cpukit/libcsupport/src/ftruncate.c
+++ b/cpukit/libcsupport/src/ftruncate.c
@@ -11,6 +11,10 @@
* $Id$
*/
+#if HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#include <unistd.h>
#include <errno.h>
diff --git a/cpukit/libcsupport/src/getcwd.c b/cpukit/libcsupport/src/getcwd.c
index 18189d3e04..fdde4eea81 100644
--- a/cpukit/libcsupport/src/getcwd.c
+++ b/cpukit/libcsupport/src/getcwd.c
@@ -36,6 +36,10 @@
* $Id$
*/
+#if HAVE_CONFIG_H
+#include "config.h"
+#endif
+
/*
* Added these when moved to RTEMS
*/
diff --git a/cpukit/libcsupport/src/getdents.c b/cpukit/libcsupport/src/getdents.c
index e154b688d2..6523abfcd0 100644
--- a/cpukit/libcsupport/src/getdents.c
+++ b/cpukit/libcsupport/src/getdents.c
@@ -17,6 +17,10 @@
* $Id$
*/
+#if HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#include <errno.h>
#include <rtems/libio_.h>
diff --git a/cpukit/libcsupport/src/getgrent.c b/cpukit/libcsupport/src/getgrent.c
index da339718a0..e4fc0fe474 100644
--- a/cpukit/libcsupport/src/getgrent.c
+++ b/cpukit/libcsupport/src/getgrent.c
@@ -8,6 +8,9 @@
* $Id$
*/
+#if HAVE_CONFIG_H
+#include "config.h"
+#endif
#include <stdio.h>
#include <sys/types.h>
diff --git a/cpukit/libcsupport/src/getpwent.c b/cpukit/libcsupport/src/getpwent.c
index 06f7318d27..d749e74f83 100644
--- a/cpukit/libcsupport/src/getpwent.c
+++ b/cpukit/libcsupport/src/getpwent.c
@@ -8,6 +8,10 @@
* $Id$
*/
+#if HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#include <stdio.h>
#include <sys/types.h>
#include <pwd.h>
diff --git a/cpukit/libcsupport/src/gxx_wrappers.c b/cpukit/libcsupport/src/gxx_wrappers.c
index 323da73e7f..f5c6f2c92b 100644
--- a/cpukit/libcsupport/src/gxx_wrappers.c
+++ b/cpukit/libcsupport/src/gxx_wrappers.c
@@ -16,6 +16,10 @@
*
*/
+#if HAVE_CONFIG_H
+#include "config.h"
+#endif
+
/* We might not need, defined just in case */
#define __RTEMS_INSIDE__ 1
diff --git a/cpukit/libcsupport/src/hosterr.c b/cpukit/libcsupport/src/hosterr.c
index addb110dea..2a02fd2b03 100644
--- a/cpukit/libcsupport/src/hosterr.c
+++ b/cpukit/libcsupport/src/hosterr.c
@@ -11,6 +11,10 @@
* $Id$
*/
+#if HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#include <rtems.h>
#if defined(RTEMS_UNIX)
#include <errno.h>
diff --git a/cpukit/libcsupport/src/ioctl.c b/cpukit/libcsupport/src/ioctl.c
index 1046c88e29..10def5e570 100644
--- a/cpukit/libcsupport/src/ioctl.c
+++ b/cpukit/libcsupport/src/ioctl.c
@@ -14,6 +14,10 @@
* $Id$
*/
+#if HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#include <rtems/libio_.h>
#include <unistd.h>
diff --git a/cpukit/libcsupport/src/isatty.c b/cpukit/libcsupport/src/isatty.c
index 1f89125b2a..57eeb8ca50 100644
--- a/cpukit/libcsupport/src/isatty.c
+++ b/cpukit/libcsupport/src/isatty.c
@@ -9,6 +9,10 @@
* $Id$
*/
+#if HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#include <sys/stat.h>
int isatty(
diff --git a/cpukit/libcsupport/src/libio.c b/cpukit/libcsupport/src/libio.c
index defc156aa0..9c0c09776c 100644
--- a/cpukit/libcsupport/src/libio.c
+++ b/cpukit/libcsupport/src/libio.c
@@ -13,6 +13,10 @@
* $Id$
*/
+#if HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#include <rtems/libio_.h> /* libio_.h pulls in rtems */
#include <rtems.h>
#include <rtems/assoc.h> /* assoc.h not included by rtems.h */
diff --git a/cpukit/libcsupport/src/libio_sockets.c b/cpukit/libcsupport/src/libio_sockets.c
index fa08171019..1b0ebb6ba0 100644
--- a/cpukit/libcsupport/src/libio_sockets.c
+++ b/cpukit/libcsupport/src/libio_sockets.c
@@ -12,6 +12,10 @@
* $Id$
*/
+#if HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#include <rtems/libio_.h> /* libio_.h pulls in rtems */
#include <rtems.h>
diff --git a/cpukit/libcsupport/src/link.c b/cpukit/libcsupport/src/link.c
index 254c5bfef0..2dd4c5a55e 100644
--- a/cpukit/libcsupport/src/link.c
+++ b/cpukit/libcsupport/src/link.c
@@ -11,6 +11,10 @@
* $Id$
*/
+#if HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#include <rtems.h>
#include <rtems/libio.h>
#include <errno.h>
diff --git a/cpukit/libcsupport/src/lseek.c b/cpukit/libcsupport/src/lseek.c
index d8694eaa4d..069952ff8e 100644
--- a/cpukit/libcsupport/src/lseek.c
+++ b/cpukit/libcsupport/src/lseek.c
@@ -11,6 +11,10 @@
* $Id$
*/
+#if HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#include <stdio.h>
#include <rtems/libio_.h>
diff --git a/cpukit/libcsupport/src/malloc.c b/cpukit/libcsupport/src/malloc.c
index 5c3c0c7586..9f02311478 100644
--- a/cpukit/libcsupport/src/malloc.c
+++ b/cpukit/libcsupport/src/malloc.c
@@ -12,6 +12,10 @@
* $Id$
*/
+#if HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#define __RTEMS_VIOLATE_KERNEL_VISIBILITY__
#include <rtems.h>
#include <rtems/libcsupport.h>
diff --git a/cpukit/libcsupport/src/mallocfreespace.c b/cpukit/libcsupport/src/mallocfreespace.c
index bd0ffc829e..26f4f34944 100644
--- a/cpukit/libcsupport/src/mallocfreespace.c
+++ b/cpukit/libcsupport/src/mallocfreespace.c
@@ -12,6 +12,10 @@
* $Id$
*/
+#if HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#define __RTEMS_VIOLATE_KERNEL_VISIBILITY__
#include <rtems.h>
#include <rtems/libcsupport.h>
diff --git a/cpukit/libcsupport/src/mkdir.c b/cpukit/libcsupport/src/mkdir.c
index d1cf4c306c..c67a0a8cb4 100644
--- a/cpukit/libcsupport/src/mkdir.c
+++ b/cpukit/libcsupport/src/mkdir.c
@@ -11,6 +11,10 @@
* $Id$
*/
+#if HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#include <sys/types.h>
#include <fcntl.h>
#include <unistd.h>
diff --git a/cpukit/libcsupport/src/mkfifo.c b/cpukit/libcsupport/src/mkfifo.c
index 9ea820675b..2c1ae3889c 100644
--- a/cpukit/libcsupport/src/mkfifo.c
+++ b/cpukit/libcsupport/src/mkfifo.c
@@ -11,6 +11,10 @@
* $Id$
*/
+#if HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#include <sys/types.h>
#include <sys/stat.h>
#include <errno.h>
diff --git a/cpukit/libcsupport/src/mknod.c b/cpukit/libcsupport/src/mknod.c
index 46ac50fdb1..e725643be3 100644
--- a/cpukit/libcsupport/src/mknod.c
+++ b/cpukit/libcsupport/src/mknod.c
@@ -15,6 +15,10 @@
* $Id$
*/
+#if HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
diff --git a/cpukit/libcsupport/src/mount.c b/cpukit/libcsupport/src/mount.c
index 7e39357285..9ea08b7e2b 100644
--- a/cpukit/libcsupport/src/mount.c
+++ b/cpukit/libcsupport/src/mount.c
@@ -17,6 +17,10 @@
* $Id$
*/
+#if HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#include <sys/types.h>
#include <sys/stat.h>
#include <chain.h>
diff --git a/cpukit/libcsupport/src/newlibc.c b/cpukit/libcsupport/src/newlibc.c
index 2e68383867..41c9359200 100644
--- a/cpukit/libcsupport/src/newlibc.c
+++ b/cpukit/libcsupport/src/newlibc.c
@@ -13,6 +13,10 @@
*
*/
+#if HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#define __RTEMS_VIOLATE_KERNEL_VISIBILITY__
#include <rtems.h>
@@ -331,7 +335,7 @@ libc_init(int reentrant)
*
*/
-#include <stdio.h>
+#include <unistd.h>
#if !defined(RTEMS_UNIX)
void _exit(int status)
diff --git a/cpukit/libcsupport/src/no_libc.c b/cpukit/libcsupport/src/no_libc.c
index 54ccb279af..016b577e63 100644
--- a/cpukit/libcsupport/src/no_libc.c
+++ b/cpukit/libcsupport/src/no_libc.c
@@ -12,6 +12,9 @@
* $Id$
*/
+#if HAVE_CONFIG_H
+#include "config.h"
+#endif
#include <rtems.h>
#if !defined(RTEMS_NEWLIB) && !defined(RTEMS_UNIX)
diff --git a/cpukit/libcsupport/src/no_posix.c b/cpukit/libcsupport/src/no_posix.c
index 9973230e44..a845092173 100644
--- a/cpukit/libcsupport/src/no_posix.c
+++ b/cpukit/libcsupport/src/no_posix.c
@@ -16,6 +16,10 @@
* $Id$
*/
+#if HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#include <rtems.h>
#include <unistd.h>
diff --git a/cpukit/libcsupport/src/open.c b/cpukit/libcsupport/src/open.c
index c78dd83bce..f777fe6379 100644
--- a/cpukit/libcsupport/src/open.c
+++ b/cpukit/libcsupport/src/open.c
@@ -11,6 +11,10 @@
* $Id$
*/
+#if HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#include <rtems/libio_.h>
#include <unistd.h>
diff --git a/cpukit/libcsupport/src/opendir.c b/cpukit/libcsupport/src/opendir.c
index f0e9488684..eef211dcbc 100644
--- a/cpukit/libcsupport/src/opendir.c
+++ b/cpukit/libcsupport/src/opendir.c
@@ -40,6 +40,10 @@
static char sccsid[] = "@(#)opendir.c 5.11 (Berkeley) 2/23/91";
#endif /* LIBC_SCCS and not lint */
+#if HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#include <dirent.h>
#include <fcntl.h>
#include <stdlib.h>
diff --git a/cpukit/libcsupport/src/pathconf.c b/cpukit/libcsupport/src/pathconf.c
index 7516ffb965..0d9d4894e8 100644
--- a/cpukit/libcsupport/src/pathconf.c
+++ b/cpukit/libcsupport/src/pathconf.c
@@ -11,6 +11,10 @@
* $Id$
*/
+#if HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#include <unistd.h>
#include <errno.h>
#include <sys/types.h>
diff --git a/cpukit/libcsupport/src/pipe.c b/cpukit/libcsupport/src/pipe.c
index 45ab89ed95..f218433be0 100644
--- a/cpukit/libcsupport/src/pipe.c
+++ b/cpukit/libcsupport/src/pipe.c
@@ -11,6 +11,10 @@
* $Id$
*/
+#if HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#include <errno.h>
int pipe(
diff --git a/cpukit/libcsupport/src/printk.c b/cpukit/libcsupport/src/printk.c
index 52f9363fb6..20178224db 100644
--- a/cpukit/libcsupport/src/printk.c
+++ b/cpukit/libcsupport/src/printk.c
@@ -18,6 +18,9 @@
| $Id$
+--------------------------------------------------------------------------*/
+#if HAVE_CONFIG_H
+#include "config.h"
+#endif
#include <stdarg.h>
#include <stdio.h>
diff --git a/cpukit/libcsupport/src/read.c b/cpukit/libcsupport/src/read.c
index 8ff65ebc15..0e478c47c3 100644
--- a/cpukit/libcsupport/src/read.c
+++ b/cpukit/libcsupport/src/read.c
@@ -11,6 +11,10 @@
* $Id$
*/
+#if HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#include <rtems/libio_.h>
ssize_t read(
diff --git a/cpukit/libcsupport/src/readdir.c b/cpukit/libcsupport/src/readdir.c
index ec41679511..8b54a9401b 100644
--- a/cpukit/libcsupport/src/readdir.c
+++ b/cpukit/libcsupport/src/readdir.c
@@ -40,6 +40,10 @@
static char sccsid[] = "@(#)readdir.c 5.7 (Berkeley) 6/1/90";
#endif /* LIBC_SCCS and not lint */
+#if HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#include <dirent.h>
int getdents(
diff --git a/cpukit/libcsupport/src/readlink.c b/cpukit/libcsupport/src/readlink.c
index adbb90eab2..2419657e1e 100644
--- a/cpukit/libcsupport/src/readlink.c
+++ b/cpukit/libcsupport/src/readlink.c
@@ -11,6 +11,10 @@
* $Id$
*/
+#if HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#include <rtems/libio_.h>
int readlink(
diff --git a/cpukit/libcsupport/src/rewinddir.c b/cpukit/libcsupport/src/rewinddir.c
index e5c753a183..462fc41f2a 100644
--- a/cpukit/libcsupport/src/rewinddir.c
+++ b/cpukit/libcsupport/src/rewinddir.c
@@ -10,6 +10,10 @@
*
*/
+#if HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#include <sys/types.h>
#include <assert.h>
#include <dirent.h>
diff --git a/cpukit/libcsupport/src/rmdir.c b/cpukit/libcsupport/src/rmdir.c
index 240a378a94..1a7cdda537 100644
--- a/cpukit/libcsupport/src/rmdir.c
+++ b/cpukit/libcsupport/src/rmdir.c
@@ -11,6 +11,10 @@
* $Id$
*/
+#if HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#include <sys/types.h>
#include <fcntl.h>
#include <unistd.h>
diff --git a/cpukit/libcsupport/src/scandir.c b/cpukit/libcsupport/src/scandir.c
index 43c7c51747..01e17c197f 100644
--- a/cpukit/libcsupport/src/scandir.c
+++ b/cpukit/libcsupport/src/scandir.c
@@ -40,6 +40,10 @@
static char sccsid[] = "@(#)scandir.c 5.10 (Berkeley) 2/23/91";
#endif /* LIBC_SCCS and not lint */
+#if HAVE_CONFIG_H
+#include "config.h"
+#endif
+
/*
* Scan the directory dirname calling select to make a list of selected
* directory entries then sort using qsort and compare routine dcomp.
diff --git a/cpukit/libcsupport/src/seekdir.c b/cpukit/libcsupport/src/seekdir.c
index eeb9c3209f..a6836c36c6 100644
--- a/cpukit/libcsupport/src/seekdir.c
+++ b/cpukit/libcsupport/src/seekdir.c
@@ -10,6 +10,10 @@
*
*/
+#if HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#include <sys/param.h>
#include <assert.h>
#include <dirent.h>
diff --git a/cpukit/libcsupport/src/stat.c b/cpukit/libcsupport/src/stat.c
index a6dc2784b9..872f55ca7c 100644
--- a/cpukit/libcsupport/src/stat.c
+++ b/cpukit/libcsupport/src/stat.c
@@ -13,6 +13,10 @@
* $Id$
*/
+#if HAVE_CONFIG_H
+#include "config.h"
+#endif
+
/*
* lstat() and stat() share the same implementation with a minor
* difference on how links are evaluated.
diff --git a/cpukit/libcsupport/src/symlink.c b/cpukit/libcsupport/src/symlink.c
index 3159eca020..657b7c4728 100644
--- a/cpukit/libcsupport/src/symlink.c
+++ b/cpukit/libcsupport/src/symlink.c
@@ -11,6 +11,10 @@
* $Id$
*/
+#if HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#include <rtems/libio_.h>
int symlink(
diff --git a/cpukit/libcsupport/src/tcdrain.c b/cpukit/libcsupport/src/tcdrain.c
index 31e026b9bc..3af93d8c18 100644
--- a/cpukit/libcsupport/src/tcdrain.c
+++ b/cpukit/libcsupport/src/tcdrain.c
@@ -11,6 +11,10 @@
* $Id$
*/
+#if HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#include <rtems.h>
#if defined(RTEMS_NEWLIB)
diff --git a/cpukit/libcsupport/src/tcflow.c b/cpukit/libcsupport/src/tcflow.c
index 19b7a9a8fd..ac1fec10c5 100644
--- a/cpukit/libcsupport/src/tcflow.c
+++ b/cpukit/libcsupport/src/tcflow.c
@@ -11,6 +11,10 @@
* $Id$
*/
+#if HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#include <rtems.h>
#if defined(RTEMS_NEWLIB)
diff --git a/cpukit/libcsupport/src/tcflush.c b/cpukit/libcsupport/src/tcflush.c
index 44616949a0..0bfac64235 100644
--- a/cpukit/libcsupport/src/tcflush.c
+++ b/cpukit/libcsupport/src/tcflush.c
@@ -11,6 +11,10 @@
* $Id$
*/
+#if HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#include <rtems.h>
#if defined(RTEMS_NEWLIB)
diff --git a/cpukit/libcsupport/src/tcgetattr.c b/cpukit/libcsupport/src/tcgetattr.c
index 8888acd3a9..cd5b0a5a79 100644
--- a/cpukit/libcsupport/src/tcgetattr.c
+++ b/cpukit/libcsupport/src/tcgetattr.c
@@ -11,6 +11,10 @@
* $Id$
*/
+#if HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#include <rtems.h>
#if defined(RTEMS_NEWLIB)
diff --git a/cpukit/libcsupport/src/tcgetprgrp.c b/cpukit/libcsupport/src/tcgetprgrp.c
index 3aca711fcf..36413f3fe2 100644
--- a/cpukit/libcsupport/src/tcgetprgrp.c
+++ b/cpukit/libcsupport/src/tcgetprgrp.c
@@ -11,6 +11,10 @@
* $Id$
*/
+#if HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#include <rtems.h>
#if defined(RTEMS_NEWLIB)
diff --git a/cpukit/libcsupport/src/tcsendbreak.c b/cpukit/libcsupport/src/tcsendbreak.c
index b37729f40a..d7b3e68764 100644
--- a/cpukit/libcsupport/src/tcsendbreak.c
+++ b/cpukit/libcsupport/src/tcsendbreak.c
@@ -11,6 +11,10 @@
* $Id$
*/
+#if HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#include <rtems.h>
#if defined(RTEMS_NEWLIB)
diff --git a/cpukit/libcsupport/src/tcsetattr.c b/cpukit/libcsupport/src/tcsetattr.c
index 7b94afef51..f97a38d76b 100644
--- a/cpukit/libcsupport/src/tcsetattr.c
+++ b/cpukit/libcsupport/src/tcsetattr.c
@@ -11,6 +11,10 @@
* $Id$
*/
+#if HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#include <rtems.h>
#if defined(RTEMS_NEWLIB)
diff --git a/cpukit/libcsupport/src/tcsetpgrp.c b/cpukit/libcsupport/src/tcsetpgrp.c
index fb0be34bc4..25d1d0403b 100644
--- a/cpukit/libcsupport/src/tcsetpgrp.c
+++ b/cpukit/libcsupport/src/tcsetpgrp.c
@@ -11,6 +11,10 @@
* $Id$
*/
+#if HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#include <rtems.h>
#if defined(RTEMS_NEWLIB)
diff --git a/cpukit/libcsupport/src/telldir.c b/cpukit/libcsupport/src/telldir.c
index ef71557699..385b2f74f4 100644
--- a/cpukit/libcsupport/src/telldir.c
+++ b/cpukit/libcsupport/src/telldir.c
@@ -10,6 +10,10 @@
*
*/
+#if HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#include <sys/param.h>
#include <assert.h>
#include <dirent.h>
diff --git a/cpukit/libcsupport/src/termios.c b/cpukit/libcsupport/src/termios.c
index 74583cae2f..cf0c4984eb 100644
--- a/cpukit/libcsupport/src/termios.c
+++ b/cpukit/libcsupport/src/termios.c
@@ -15,6 +15,10 @@
* $Id$
*/
+#if HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#include <rtems.h>
#include <rtems/libio.h>
#include <ctype.h>
diff --git a/cpukit/libcsupport/src/termiosinitialize.c b/cpukit/libcsupport/src/termiosinitialize.c
index f6e73787c9..96194435c6 100644
--- a/cpukit/libcsupport/src/termiosinitialize.c
+++ b/cpukit/libcsupport/src/termiosinitialize.c
@@ -15,6 +15,10 @@
* $Id$
*/
+#if HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#include <rtems.h>
#include <rtems.h>
#include <rtems/libio.h>
diff --git a/cpukit/libcsupport/src/termiosreserveresources.c b/cpukit/libcsupport/src/termiosreserveresources.c
index 664bdd1f62..86bacc3d53 100644
--- a/cpukit/libcsupport/src/termiosreserveresources.c
+++ b/cpukit/libcsupport/src/termiosreserveresources.c
@@ -4,6 +4,10 @@
* $Id$
*/
+#if HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#include <rtems.h>
#if 0
diff --git a/cpukit/libcsupport/src/truncate.c b/cpukit/libcsupport/src/truncate.c
index d551b5be5b..d4f6f1613f 100644
--- a/cpukit/libcsupport/src/truncate.c
+++ b/cpukit/libcsupport/src/truncate.c
@@ -15,6 +15,10 @@
* $Id$
*/
+#if HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#include <unistd.h>
#include <errno.h>
#include <fcntl.h>
diff --git a/cpukit/libcsupport/src/ttyname.c b/cpukit/libcsupport/src/ttyname.c
index 90064936bb..4475267b9c 100644
--- a/cpukit/libcsupport/src/ttyname.c
+++ b/cpukit/libcsupport/src/ttyname.c
@@ -4,6 +4,10 @@
* $Id$
*/
+#if HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
diff --git a/cpukit/libcsupport/src/ttyname_r.c b/cpukit/libcsupport/src/ttyname_r.c
index e78eb5ea36..554fed6398 100644
--- a/cpukit/libcsupport/src/ttyname_r.c
+++ b/cpukit/libcsupport/src/ttyname_r.c
@@ -40,6 +40,10 @@
static char sccsid[] = "@(#)ttyname.c 5.10 (Berkeley) 5/6/91";
#endif /* LIBC_SCCS and not lint */
+#if HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
diff --git a/cpukit/libcsupport/src/umask.c b/cpukit/libcsupport/src/umask.c
index 7fb059b9dd..fa683936ef 100644
--- a/cpukit/libcsupport/src/umask.c
+++ b/cpukit/libcsupport/src/umask.c
@@ -11,6 +11,10 @@
* $Id$
*/
+#if HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#include <sys/types.h>
#include <sys/stat.h>
diff --git a/cpukit/libcsupport/src/unixlibc.c b/cpukit/libcsupport/src/unixlibc.c
index 494e83b159..abc4526397 100644
--- a/cpukit/libcsupport/src/unixlibc.c
+++ b/cpukit/libcsupport/src/unixlibc.c
@@ -11,6 +11,10 @@
*
*/
+#if HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#include <rtems.h>
#if defined(RTEMS_UNIXLIB)
diff --git a/cpukit/libcsupport/src/unlink.c b/cpukit/libcsupport/src/unlink.c
index 99f132b902..d843d11893 100644
--- a/cpukit/libcsupport/src/unlink.c
+++ b/cpukit/libcsupport/src/unlink.c
@@ -11,6 +11,10 @@
* $Id$
*/
+#if HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#include <errno.h>
#include <rtems/libio_.h>
diff --git a/cpukit/libcsupport/src/unmount.c b/cpukit/libcsupport/src/unmount.c
index 9bdfb2c38c..33c6f25bee 100644
--- a/cpukit/libcsupport/src/unmount.c
+++ b/cpukit/libcsupport/src/unmount.c
@@ -16,6 +16,10 @@
* $Id$
*/
+#if HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#include <sys/types.h>
#include <sys/stat.h>
#include <chain.h>
diff --git a/cpukit/libcsupport/src/utime.c b/cpukit/libcsupport/src/utime.c
index ca1ed1980d..dcfad893cd 100644
--- a/cpukit/libcsupport/src/utime.c
+++ b/cpukit/libcsupport/src/utime.c
@@ -11,6 +11,10 @@
* $Id$
*/
+#if HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#include <sys/types.h>
#include <utime.h>
#include <errno.h>
diff --git a/cpukit/libcsupport/src/write.c b/cpukit/libcsupport/src/write.c
index 9710237b5c..d5a03bf08c 100644
--- a/cpukit/libcsupport/src/write.c
+++ b/cpukit/libcsupport/src/write.c
@@ -11,6 +11,10 @@
* $Id$
*/
+#if HAVE_CONFIG_H
+#include "config.h"
+#endif
+
#include <rtems/libio_.h>