Changeset 3009


Ignore:
Timestamp:
08/10/2011 13:06:34 (8 months ago)
Author:
chris
Message:

Silence warnings from new MinGW headers that expect MINGW_FEATURES
to be defined.

Check for fcntl.h and include it if we have it, not just on MSVC, now
that MinGW also defines O_BINARY in newer versions.

Location:
box/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • box/trunk/infrastructure/m4/boxbackup_tests.m4

    r3008 r3009  
    127127AC_HEADER_STDC 
    128128AC_HEADER_SYS_WAIT 
    129 AC_CHECK_HEADERS([dlfcn.h getopt.h process.h pwd.h signal.h]) 
     129AC_CHECK_HEADERS([dlfcn.h fcntl.h getopt.h process.h pwd.h signal.h]) 
    130130AC_CHECK_HEADERS([syslog.h time.h cxxabi.h]) 
    131131AC_CHECK_HEADERS([netinet/in.h]) 
  • box/trunk/infrastructure/m4/vl_lib_readline.m4

    r2867 r3009  
    9292dnl VL_LIB_READLINE_CHECK(name, libraries, headers, history headers) 
    9393AC_DEFUN([VL_LIB_READLINE_CHECK], [ 
     94  ORIG_LIBS="$LIBS" 
    9495  AC_CACHE_CHECK([for $1 library], 
    9596                 [vl_cv_lib_$1], [ 
    96     ORIG_LIBS="$LIBS" 
    9797    vl_cv_lib_$1="" 
    9898    for readline_lib in $2; do 
  • box/trunk/lib/win32/emu.h

    r2992 r3009  
    1515#if ! defined EMU_INCLUDE && defined WIN32 
    1616#define EMU_INCLUDE 
     17 
     18// Shut up stupid new warnings. Thanks MinGW! Ever heard of "compatibility"? 
     19#ifdef __MINGW32__ 
     20#       define __MINGW_FEATURES__ 0 
     21#endif 
    1722 
    1823// basic types, may be required by other headers since we 
  • box/trunk/lib/win32/getopt_long.cpp

    r2520 r3009  
    5959 
    6060// #include "Box.h" 
     61#include "emu.h" 
    6162 
    6263#include <errno.h> 
Note: See TracChangeset for help on using the changeset viewer.