diff --git a/Makefile.dos b/Makefile.dos index d85c898..a4c7855 100644 --- a/Makefile.dos +++ b/Makefile.dos @@ -19,7 +19,7 @@ CFLAGS += -wcd=303 # -5s : Pentium stack calling conventions. # -5r : Pentium register calling conventions. CFLAGS += -5s -INCLUDES = -I"src/watcom" -I"$(%WATCOM)/h" +INCLUDES = -I"$(%WATCOM)/h" # for sound_sb: CPPFLAGS+= -DSOUND_SB diff --git a/Makefile.os2 b/Makefile.os2 index e7dcf38..40619b5 100644 --- a/Makefile.os2 +++ b/Makefile.os2 @@ -23,7 +23,7 @@ CFLAGS += -wcd=303 # -5s : Pentium stack calling conventions. # -5r : Pentium register calling conventions. CFLAGS += -5s -INCLUDES = -I"src/watcom" -I"$(%WATCOM)/h/os2" -I"$(%WATCOM)/h" +INCLUDES = -I"$(%WATCOM)/h/os2" -I"$(%WATCOM)/h" # for sound_dart: CPPFLAGS = -DSOUND_OS2DART diff --git a/Makefile.w32 b/Makefile.w32 index 9e86821..b52bd06 100644 --- a/Makefile.w32 +++ b/Makefile.w32 @@ -23,7 +23,7 @@ CFLAGS += -wcd=303 # -5s : Pentium stack calling conventions. # -5r : Pentium register calling conventions. CFLAGS += -5s -INCLUDES = -I"src/win32" -I"$(%WATCOM)/h/nt" -I"$(%WATCOM)/h" +INCLUDES = -I"$(%WATCOM)/h/nt" -I"$(%WATCOM)/h" # for sound_win32: CPPFLAGS = -DSOUND_WIN32 diff --git a/configure.ac b/configure.ac index e852aca..f199e17 100644 --- a/configure.ac +++ b/configure.ac @@ -99,7 +99,7 @@ AC_DEFUN([AC_CHECK_DEFINED],[ AS_VAR_POPDEF([ac_var])dnl ]) -AC_CHECK_HEADERS([getopt.h signal.h sys/select.h sys/time.h sys/audioio.h]) +AC_CHECK_HEADERS([sys/types.h unistd.h getopt.h signal.h sys/select.h sys/time.h sys/audioio.h]) case $host_os in dnl don't check half-baked termios for amiga or dos targets. amigaos*|aros*|morphos*|*djgpp) ;; diff --git a/src/Makefile.am b/src/Makefile.am index aad4bd2..593d19b 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -100,5 +100,4 @@ pkgsysconfdir = ${sysconfdir}/${PACKAGE_NAME} pkgsysconf_DATA = modules.conf xmp.conf EXTRA_DIST = ${man_MANS} ${pkgsysconf_DATA} \ - dos/dosdma.h dos/dosirq.h dos/dossb.h dos/dosutil.h \ - win32/unistd.h watcom/unistd.h + dos/dosdma.h dos/dosirq.h dos/dossb.h dos/dosutil.h diff --git a/src/delay.c b/src/delay.c index be23850..757d0a5 100644 --- a/src/delay.c +++ b/src/delay.c @@ -13,7 +13,7 @@ void delay_ms(int msec) { Sleep(msec); } -#elif defined(__OS2__) +#elif defined(__OS2__)||defined(__EMX__) #define INCL_DOSPROCESS #include @@ -40,9 +40,15 @@ void delay_ms(int msec) { #ifdef HAVE_SYS_SELECT_H # include #else +# ifdef HAVE_SYS_TIME_H # include +# endif +# ifdef HAVE_SYS_TYPES_H # include +# endif +# ifdef HAVE_UNISTD_H # include +# endif #endif #include diff --git a/src/main.c b/src/main.c index 2497b09..e04187e 100644 --- a/src/main.c +++ b/src/main.c @@ -18,8 +18,12 @@ #if defined(__WATCOMC__) #include #endif +#ifdef HAVE_SYS_TYPES_H #include +#endif +#ifdef HAVE_UNISTD_H #include +#endif #include #if defined(HAVE_GETOPT_H) && defined(HAVE_GETOPT_LONG) #include diff --git a/src/watcom/unistd.h b/src/watcom/unistd.h deleted file mode 100644 index 77496de..0000000 --- a/src/watcom/unistd.h +++ /dev/null @@ -1,6 +0,0 @@ -#ifndef XMP_WATCOM_UNISTD_H -#define XMP_WATCOM_UNISTD_H - -#include /* do not want Watcom unistd.h */ - -#endif diff --git a/src/win32/unistd.h b/src/win32/unistd.h deleted file mode 100644 index e003449..0000000 --- a/src/win32/unistd.h +++ /dev/null @@ -1,6 +0,0 @@ -#ifndef _XMP_WIN32_UNISTD_H -#define _XMP_WIN32_UNISTD_H - -#include - -#endif diff --git a/vc/xmp.vcproj b/vc/xmp.vcproj index 3479d29..9c79acd 100644 --- a/vc/xmp.vcproj +++ b/vc/xmp.vcproj @@ -38,7 +38,7 @@ />