allow mingw build w/o GUI

This commit is contained in:
dwarning 2007-12-15 16:35:35 +00:00
parent 7f157c76a2
commit 71362bf7eb
3 changed files with 11 additions and 4 deletions

View File

@ -1,3 +1,6 @@
2007-12-14 Dietmar Warning
* configure.in, src/spicelib/devices/dev.c: allow mingw build w/o GUI
2007-12-14 Holger Vogt
* src/frontend/runcoms.c, runcoms2.c: fix the filetype problem if set in spinit

View File

@ -384,9 +384,11 @@ AC_CHECK_FUNCS(ftime)
AC_CHECK_FUNCS(gettimeofday time)
AC_CHECK_FUNCS(getrusage utimes)
AC_CHECK_FUNCS(getrlimit ulimit , break)
if test "$with_windows" = "yes"; then
AC_DEFINE(HAVE__MEMAVL,[1],[Get system memory from windows API])
fi
case $host_os in
*mingw* )
AC_DEFINE(HAVE__MEMAVL,1,[Get system memory from windows API])
esac
dnl Look for termios first (posix)
AC_CHECK_HEADERS(termios.h termio.h sgtty.h , break)

View File

@ -42,11 +42,13 @@
#ifdef XSPICE
/*saj headers for xspice*/
#include <string.h> /* for strcpy, strcat*/
#ifndef HAS_WINDOWS
#if (!defined HAS_WINDOWS) && (!defined __MINGW32__)
#include <dlfcn.h> /* to load libraries*/
#else /* ifdef HAS_WINDOWS */
#include <windows.h>
#ifdef HAS_WINDOWS
#include "wstdio.h"
#endif
void *dlopen (const char *, int);
void *dlsym (void *, const char *);
int dlclose (void *);