summaryrefslogtreecommitdiffstats
path: root/c/src/exec/sapi/src/posixapi.c
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>1997-01-28 23:35:01 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>1997-01-28 23:35:01 +0000
commitf7e46cf019cf14b926e546dc0281c74744ab78a9 (patch)
tree718e6e52fd2036e3cffeafcee7e06c8f0e0af6cf /c/src/exec/sapi/src/posixapi.c
parentremoved include of unnecessary include file. (diff)
downloadrtems-f7e46cf019cf14b926e546dc0281c74744ab78a9.tar.bz2
With the transition from command line macro definitions to targopts.h,
it was necessary to include system.h before checking if anything was defined.
Diffstat (limited to '')
-rw-r--r--c/src/exec/sapi/src/posixapi.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/c/src/exec/sapi/src/posixapi.c b/c/src/exec/sapi/src/posixapi.c
index b3612326a5..d6be0bc888 100644
--- a/c/src/exec/sapi/src/posixapi.c
+++ b/c/src/exec/sapi/src/posixapi.c
@@ -14,8 +14,6 @@
* $Id$
*/
-#ifdef RTEMS_POSIX_API
-
#include <assert.h>
/*
@@ -25,7 +23,8 @@
#define POSIX_API_INIT
-#include <rtems/system.h>
+#include <rtems/system.h> /* include this before checking RTEMS_POSIX_API */
+#ifdef RTEMS_POSIX_API
#include <sys/types.h>
#include <rtems/config.h>