From 370e40eb0be323e72992a5bf76e6da562064e6eb Mon Sep 17 00:00:00 2001 From: erg Date: Fri, 4 May 2007 18:38:09 +0000 Subject: [PATCH] Fix sfio to build on Windows. --- lib/sfio/Sfio_f/Makefile.am | 2 ++ lib/sfio/sfexit.c | 2 ++ 2 files changed, 4 insertions(+) diff --git a/lib/sfio/Sfio_f/Makefile.am b/lib/sfio/Sfio_f/Makefile.am index 1d1064f00..69cdd454f 100644 --- a/lib/sfio/Sfio_f/Makefile.am +++ b/lib/sfio/Sfio_f/Makefile.am @@ -3,6 +3,8 @@ AM_CPPFLAGS = -I$(top_srcdir)/lib/sfio +AM_CFLAGS = -Dvt_threaded=0 + noinst_LTLIBRARIES = libsfiof_C.la libsfiof_C_la_SOURCES = _sfclrerr.c _sfdlen.c _sfeof.c _sferror.c \ diff --git a/lib/sfio/sfexit.c b/lib/sfio/sfexit.c index b0164804b..5e2ad0309 100644 --- a/lib/sfio/sfexit.c +++ b/lib/sfio/sfexit.c @@ -126,6 +126,7 @@ typedef struct _wait_ { static Waitpid_t *Wait; +#ifndef WIN32 #if __STD_C waitpid(int pid, int *status, int options) #else @@ -187,3 +188,4 @@ int options; #endif /*_lib_waitpid*/ #endif /*!PACKAGE_ast */ +#endif -- 2.40.0