/* $Id: machine.h,v 1.3 2012/08/09 19:25:25 ksb Exp $ * Every product needs one. (ksb) */ #if !defined(HPUX) #define HPUX (defined(HPUX9)||defined(HPUX10)||defined(HPUX11)) #endif /* Old RedHat 6.2 hosts need the emulation for mkdtemp, but I don't * have a good way to compute the need here. Autoconfig can do it * better. Sadly the come with an autoconfig that can't, as well. * So we put it in the Makefile with a -DNEED_MKDTEMP in CDEFS. -- ksb */ #if !defined(NEED_MKDTEMP) #if defined(HAVE_MKDTEMP) #define NEED_MKDTEMP (!(HAVE_MKDTEMP)) #else #define NEED_MKDTEMP (USE_MSRC_DEFAULT ? (defined(SUN5)||defined(IBMR2)||defined(HPUX11)) : 1) #endif #endif /* set need mkdtemp */ #if !defined(HAVE_ARC4RANDOM) #define HAVE_ARC4RANDOM (USE_MSRC_DEFAULT ? (defined(FREEBSD)||defined(NETBSD)||defined(OPENBSD)) : 0) #endif #if !defined(EMU_ARC4RANDOM) #define EMU_ARC4RANDOM (!(HAVE_ARC4RANDOM)) #endif #if NEED_MKDTEMP extern char *mkdtemp(char *); #endif /* We need this, but I hate the kludge, should use sizeof not +2 */ #if !defined(EMU_SOCKUN_LEN) #define EMU_SOCKUN_LEN(Mpc) (strlen(Mpc)+2) #endif #if !defined(USE_MALLOC_H) #define USE_MALLOC_H (defined(HAVE_MALLOC_H)||defined(IBMR2)||defined(AIX)||defined(LINUX)||defined(HPUX10)||defined(HPUX11)) #endif /* HPUX is missing 2 sysexits */ #if !defined(EX_CONFIG) #define EX_CONFIG 78 /* Linux, BSD, Solaris have this */ #endif #if !defined(EX_NOTFOUND) #define EX_NOTFOUND 79 /* Solaris, and others have this */ #endif /* Force a path to m4, when the one in the search path is lame * * This was added simply to make sure that efmd had the same m4 search path behavior as hxmd * for the time being. --jad */ #if !defined(M4_SYS_PATH) #define M4_SYS_PATH "m4" #endif