00001 // @(#)root/editline:$Id: compat_conf.h 30235 2009-09-18 04:30:07Z brun $ 00002 // Author: Mary-Louise Gill, 2009 00003 00004 /************************************************************************* 00005 * Copyright (C) 1995-2009, Rene Brun and Fons Rademakers. * 00006 * All rights reserved. * 00007 * * 00008 * For the licensing terms see $ROOTSYS/LICENSE. * 00009 * For the list of contributors see $ROOTSYS/README/CREDITS. * 00010 *************************************************************************/ 00011 00012 #define HAVE_GETLINE 1 00013 #define HAVE_FLOCKFILE 1 00014 00015 #ifdef __sun 00016 # define HAVE_SYS_CDEFS_H 0 00017 #endif 00018 #ifdef __CYGWIN__ 00019 #include <sys/ioctl.h> 00020 #endif 00021 00022 #if defined(__sun) || defined(__CYGWIN__) 00023 extern "C" { 00024 typedef void (*sig_t)(int); 00025 } 00026 #endif 00027 00028 00029 //////////////////////////////////////////////////////////////////////// 00030 // most of this #ifdef code is to work around my own preference of 00031 // #if FOO, instead of #ifdef FOO, in client code. Since toc 00032 // does a define to 0 on false (which i think is sane), we need 00033 // to UNSET those vars which toc sets to zero, to accomodate 00034 // this source tree. 00035 #ifndef HAVE_SYS_TYPES_H 00036 # define HAVE_SYS_TYPES_H 1 00037 #endif 00038 #if (0 == HAVE_SYS_TYPES_H) 00039 # undef HAVE_SYS_TYPES_H 00040 #endif 00041 00042 #ifndef HAVE_SYS_CDEFS_H 00043 # define HAVE_SYS_CDEFS_H 1 00044 #endif 00045 #if (0 == HAVE_SYS_CDEFS_H) 00046 # undef HAVE_SYS_CDEFS_H 00047 #endif 00048