gpg 1.0.4 build failure on HP-UX 9.x (and fix)

Lars Hecking lhecking@nmrc.ie
Wed, 18 Oct 2000 21:24:42 +0100


Making all in g10
        gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../include -I../intl    -g -O2 -Wall -c misc.c
misc.c: In function `disable_core_dumps':
misc.c:94: `RLIMIT_CORE' undeclared (first use in this function)
misc.c:94: (Each undeclared identifier is reported only once
misc.c:94: for each function it appears in.)

 HP-UX 9.x defines RLIMIT_CORE only #ifdef _KERNEL. The value is 4 on
 all platforms I have access to.

--- misc.c.orig Wed Oct 18 21:06:12 2000
+++ misc.c      Wed Oct 18 21:02:56 2000
@@ -31,6 +31,10 @@
 #ifdef HAVE_SETRLIMIT
   #include <sys/time.h>
   #include <sys/resource.h>
+  #ifndef RLIMIT_CORE
+  /* HP-UX 9.x ... */
+    #define RLIMIT_CORE 4
+  #endif
 #endif
 #include "util.h"
 #include "main.h"

-- 
Archive is at http://lists.gnupg.org - Unsubscribe by sending mail
with a subject of  "unsubscribe"  to gnupg-users-request@gnupg.org