From: ehofman Date: Sun, 8 Jun 2003 12:01:43 +0000 (+0000) Subject: MingW 0.92 fixes X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=e3bcb4b61964b94ac23a50e264ce86997230eb1f;p=flightgear.git MingW 0.92 fixes --- diff --git a/configure.ac b/configure.ac index c4dbb47dd..b3d6e2eb8 100644 --- a/configure.ac +++ b/configure.ac @@ -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) diff --git a/src/FDM/ExternalPipe/ExternalPipe.cxx b/src/FDM/ExternalPipe/ExternalPipe.cxx index 4f1139eec..c43b99f54 100644 --- a/src/FDM/ExternalPipe/ExternalPipe.cxx +++ b/src/FDM/ExternalPipe/ExternalPipe.cxx @@ -24,7 +24,7 @@ # include #endif -#if defined( HAVE_SYS_TYPES_H ) && defined( HAVE_SYS_STAT_H ) +#ifdef HAVE_MKFIFO # include // mkfifo() open() umask() # include // mkfifo() open() umask() # include // 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;