Move inclusion of system headers in misc.c to top, which fixes building on
recent Cygwin (including windows.h after the macros defined in modval.h causes the build to fail due to our 'load' macro). Reported by VICODAN. Also define WIN32_LEAN_AND_MEAN in misc.c, which should speed up Cygwin build times a little. git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@219 13b04d17-f746-0410-82c6-800466cd88b0
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
[Changes 1.2c01]
|
||||
|
||||
* Fix building plugins on FreeBSD-10. (caf)
|
||||
* Fix building on newer Cygwin (reported by VICODAN). (caf)
|
||||
|
||||
* Fix building plugins on FreeBSD-10 (reported by cpet). (caf)
|
||||
|
||||
* Messages sent to channels should use lastlog level PUBLIC, not MSG. (caf)
|
||||
|
||||
|
||||
1
configure
vendored
1
configure
vendored
@@ -6340,6 +6340,7 @@ echo $ECHO_N "checking for the iphlpapi library... $ECHO_C" >&6
|
||||
LIBS="-liphlpapi $LIBS"
|
||||
cat >conftest.$ac_ext <<_ACEOF
|
||||
|
||||
#define WIN32_LEAN_AND_MEAN
|
||||
#include <windows.h>
|
||||
#include <iphlpapi.h>
|
||||
|
||||
|
||||
@@ -169,6 +169,7 @@ if test x"$bx_cv_lib_resolver" != x"not found"; then
|
||||
OLDLIBS="$LIBS"
|
||||
LIBS="-liphlpapi $LIBS"
|
||||
AC_LINK_IFELSE([[
|
||||
#define WIN32_LEAN_AND_MEAN
|
||||
#include <windows.h>
|
||||
#include <iphlpapi.h>
|
||||
|
||||
|
||||
@@ -4,6 +4,31 @@
|
||||
#include "irc.h"
|
||||
static char cvsrevision[] = "$Id$";
|
||||
CVS_REVISION(misc_c)
|
||||
|
||||
#ifdef HAVE_LIBIPHLPAPI
|
||||
#define WIN32_LEAN_AND_MEAN
|
||||
#include <windows.h>
|
||||
#include <iphlpapi.h>
|
||||
#endif
|
||||
|
||||
#include <stdio.h>
|
||||
#include <ctype.h>
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <sys/stat.h>
|
||||
#include <signal.h>
|
||||
|
||||
#include <sys/time.h>
|
||||
#include <sys/types.h>
|
||||
#ifndef __OPENNT
|
||||
#include <sys/resource.h>
|
||||
#endif
|
||||
#include <unistd.h>
|
||||
|
||||
#if defined(sparc) && defined(sun4c)
|
||||
#include <sys/rusage.h>
|
||||
#endif
|
||||
|
||||
#include "struct.h"
|
||||
|
||||
#include "server.h"
|
||||
@@ -45,24 +70,6 @@ CVS_REVISION(misc_c)
|
||||
#define MAIN_SOURCE
|
||||
#include "modval.h"
|
||||
|
||||
#include <stdio.h>
|
||||
#include <ctype.h>
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <sys/stat.h>
|
||||
#include <signal.h>
|
||||
|
||||
#include <sys/time.h>
|
||||
#include <sys/types.h>
|
||||
#ifndef __OPENNT
|
||||
#include <sys/resource.h>
|
||||
#endif
|
||||
#include <unistd.h>
|
||||
|
||||
#if defined(sparc) && defined(sun4c)
|
||||
#include <sys/rusage.h>
|
||||
#endif
|
||||
|
||||
#ifdef GUI
|
||||
extern int guiipc[2];
|
||||
extern int newscrollerpos, lastscrollerpos, lastscrollerwindow;
|
||||
@@ -2054,8 +2061,6 @@ static struct resstats {
|
||||
} ar_reinfo;
|
||||
|
||||
#ifdef HAVE_LIBIPHLPAPI
|
||||
#include <windows.h>
|
||||
#include <iphlpapi.h>
|
||||
|
||||
void ar_get_windows_dns(void)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user