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

Re: A `new' es available



Bravo!  (Sounds of champagne corks popping in the background).

A DEC alpha running OSF1 didn't like some protoypes.  I ended up
changing the source a bit.  Find the patch below (the alpha wanted
the second argument to getopt to be char *argv[], and getting const
declarations to match seems to be a lost battle.  Maybe -Dconst= would
be appropriate?)

- Harald

diff -ru /stores/ernie/es/src-0.9alpha2-local/main.c src-0.9alpha2-alpha/main.c
--- /stores/ernie/es/src-0.9alpha2-local/main.c	Fri Mar 21 18:34:09 1997
+++ src-0.9alpha2-alpha/main.c	Thu Apr 10 18:16:06 1997
@@ -9,7 +9,7 @@
 Boolean gcinfo		= FALSE;	/* -I */
 #endif
 
-#if !HPUX && !defined(linux) && !defined(sgi)
+#if !HPUX && !defined(linux) && !defined(sgi) && !defined(__osf__)
 extern int getopt (int argc, char **argv, const char *optstring);
 #endif
 extern int optind;
diff -ru /stores/ernie/es/src-0.9alpha2-local/prim-sys.c src-0.9alpha2-alpha/prim-sys.c
--- /stores/ernie/es/src-0.9alpha2-local/prim-sys.c	Tue Oct 22 18:58:13 1996
+++ src-0.9alpha2-alpha/prim-sys.c	Thu Apr 10 18:15:07 1997
@@ -139,7 +139,11 @@
 
 #if BSD_LIMITS
 extern int getrlimit(int, struct rlimit *);
+#if defined(__osf__)
+extern int setrlimit(int,struct rlimit *);
+#else
 extern int setrlimit(int, const struct rlimit *);
+#endif
 
 typedef struct Suffix Suffix;
 struct Suffix {