[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: [jmlb2@hermes.cam.ac.uk: Re: dpkg on other unix]



Andreas Tille <tille@physik.uni-halle.de> writes:

> Is there anybody who successfully compiled dpkg on HP-UX.

I have.  Patches are extremely minor, just adding two new configure
checks, and:

--- lib/compat.c        1998/12/01 19:12:31     1.1.1.1
+++ lib/compat.c        1998/12/01 19:53:34     1.2
@@ -78,10 +78,14 @@
 #endif
 
 #ifndef HAVE_STRSIGNAL
+#ifdef HAVE_SYS_SIGLIST
 extern const char *const sys_siglist[];
+#endif
 const char *strsignal(int e) {
   static char buf[100];
+#ifdef HAVE_SYS_SIGLIST
   if (e >= 0 && e < NSIG) return sys_siglist[e];
+#endif
   sprintf(buf, _("Signal no.%d"), e);
   return buf;
 }
--- main/filesdb.c      1998/12/01 19:12:32     1.1.1.1
+++ main/filesdb.c      1998/12/01 19:45:07     1.2
@@ -485,16 +485,20 @@
 
 void filesdbinit(void) {
   struct filenamenode *fnn;
+#ifdef HAVE_SYSINFO
   struct sysinfo info;
+#endif
   int i;
 
   if (!f_largemem) {
     f_largemem= -1;
+#ifdef HAVE_SYSINFO
     if (!sysinfo(&info)) {
       if (info.freeram + (info.sharedram>>2) + (info.bufferram>>2) >= 4096*1024
 ||
           info.totalram >= 6144)
         f_largemem= 1;
     }
+#endif
   }



Guy


Reply to: