]> git.mxchange.org Git - flightgear.git/commitdiff
MingW 0.92 fixes
authorehofman <ehofman>
Sun, 8 Jun 2003 12:01:43 +0000 (12:01 +0000)
committerehofman <ehofman>
Sun, 8 Jun 2003 12:01:43 +0000 (12:01 +0000)
configure.ac
src/FDM/ExternalPipe/ExternalPipe.cxx

index c4dbb47dd00328dcdac5c5901c3fbb7cc2e14ea7..b3d6e2eb8cb7e8af7eca9dbe5b94d93215b36482 100644 (file)
@@ -538,7 +538,7 @@ dnl Checks for header files.
 AC_HEADER_STDC
 AC_CHECK_HEADERS( \
        fcntl.h getopt.h malloc.h memory.h stdlib.h sys/param.h sys/stat.h \
-        sys/time.h sys/timeb.h unistd.h windows.h winbase.h values.h )
+        sys/time.h sys/timeb.h unistd.h windows.h values.h )
 
 dnl Checks for typedefs, structures, and compiler characteristics.
 AC_C_CONST
@@ -550,7 +550,7 @@ dnl Checks for library functions.
 AC_TYPE_SIGNAL
 AC_FUNC_VPRINTF
 AC_CHECK_FUNCS( \
-        ftime gettimeofday timegm memcpy bcopy mktime strstr rand \
+        ftime gettimeofday timegm memcpy bcopy mktime strstr rand mkfifo \
        random drand48 setitimer getitimer signal GetLocalTime rint getrusage )
 
 AM_CONFIG_HEADER(src/Include/config.h)
index 4f1139eec373811149922b7a6a78f7d7bf252a3c..c43b99f54a41de5600aa96134a5f8b593fd3af47 100644 (file)
@@ -24,7 +24,7 @@
 #  include <config.h>
 #endif
 
-#if defined( HAVE_SYS_TYPES_H ) && defined( HAVE_SYS_STAT_H )
+#ifdef HAVE_MKFIFO
 #  include <sys/types.h>        // mkfifo() open() umask()
 #  include <sys/stat.h>         // mkfifo() open() umask()
 #  include <fcntl.h>            // open()
@@ -46,7 +46,7 @@ FGExternalPipe::FGExternalPipe( double dt, string name ) {
 
     buf = new char[sizeof(ctrls) + 1];
 
-#if defined( HAVE_SYS_TYPES_H ) && defined( HAVE_SYS_STAT_H )
+#ifdef HAVE_MKFIFO
     fifo_name_1 = name + "1";
     fifo_name_2 = name + "2";
 
@@ -87,7 +87,7 @@ FGExternalPipe::~FGExternalPipe() {
 
     SG_LOG( SG_IO, SG_INFO, "Closing up the ExternalPipe." );
     
-#if defined( HAVE_SYS_TYPES_H ) && defined( HAVE_SYS_STAT_H )
+#ifdef HAVE_MKFIFO
     // close
     int result;
     result = close( pd1 );
@@ -118,7 +118,7 @@ void FGExternalPipe::init() {
     double heading = fgGetDouble("/sim/presets/heading-deg");
     double speed = fgGetDouble( "/sim/presets/airspeed-kt" );
 
-#if defined( HAVE_SYS_TYPES_H ) && defined( HAVE_SYS_STAT_H )
+#ifdef HAVE_MKFIFO
 
     char cmd[256];
     int result;
@@ -178,7 +178,7 @@ void FGExternalPipe::init() {
 
 // Run an iteration of the EOM.
 void FGExternalPipe::update( double dt ) {
-#if defined( HAVE_SYS_TYPES_H ) && defined( HAVE_SYS_STAT_H )
+#ifdef HAVE_MKFIFO
     // SG_LOG( SG_IO, SG_INFO, "Start FGExternalPipe::udpate()" );
 
     int length;