Browse Source

allow mingw build w/o GUI

pre-master-46
dwarning 19 years ago
parent
commit
71362bf7eb
  1. 3
      ChangeLog
  2. 8
      configure.in
  3. 4
      src/spicelib/devices/dev.c

3
ChangeLog

@ -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

8
configure.in

@ -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)

4
src/spicelib/devices/dev.c

@ -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 *);

Loading…
Cancel
Save