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
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)
# 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()
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";
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 );
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;
// 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;