[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
AIX 5.1 fixes for coreutils 4.5.3
From: |
Petter Reinholdtsen |
Subject: |
AIX 5.1 fixes for coreutils 4.5.3 |
Date: |
Wed Oct 23 12:01:18 2002 |
User-agent: |
Gnus/5.0808 (Gnus v5.8.8) Emacs/21.2 |
[Petter Reinholdtsen]
> Here are a few patches for coreutils 4.5.3. Some of them are required
> to get the source compiling on AIX and Irix.
Here is an updated patch for AIX. The previous patch for
src/pathchk.c was wrong. With this patch, I was able to get coreutils
4.5.3 working on AIX 5.1.
diff -ur src-4.5.3/src/fmt.c src-4.5.3-local/src/fmt.c
--- src-4.5.3/src/fmt.c 2002-09-24 10:50:20.000000000 +0200
+++ src-4.5.3-local/src/fmt.c 2002-10-21 19:41:17.000000000 +0200
@@ -134,10 +134,10 @@
const char *text; /* the text of the word */
int length; /* length of this word */
int space; /* the size of the following space */
- bool paren:1; /* starts with open paren */
- bool period:1; /* ends in [.?!])* */
- bool punct:1; /* ends in punctuation */
- bool final:1; /* end of sentence */
+ unsigned int paren:1; /* starts with open paren */
+ unsigned int period:1; /* ends in [.?!])* */
+ unsigned int punct:1; /* ends in punctuation */
+ unsigned int final:1; /* end of sentence */
/* The remaining fields are computed during the optimization. */
diff -ur src-4.5.3/src/pathchk.c src-4.5.3-local/src/pathchk.c
--- src-4.5.3/src/pathchk.c 2002-09-02 09:43:38.000000000 +0200
+++ src-4.5.3-local/src/pathchk.c 2002-10-23 09:14:39.000000000 +0200
@@ -62,10 +62,16 @@
#if HAVE_PATHCONF
# ifndef PATH_MAX
# define PATH_MAX_FOR(p) pathconf_wrapper ((p), _PC_PATH_MAX)
+# ifdef NEED_PATHCONF_WRAPPER
+# undef NEED_PATHCONF_WRAPPER
+# endif
# define NEED_PATHCONF_WRAPPER 1
# endif /* not PATH_MAX */
# ifndef NAME_MAX
# define NAME_MAX_FOR(p) pathconf_wrapper ((p), _PC_NAME_MAX);
+# ifdef NEED_PATHCONF_WRAPPER
+# undef NEED_PATHCONF_WRAPPER
+# endif
# define NEED_PATHCONF_WRAPPER 1
# endif /* not NAME_MAX */
diff -ur src-4.5.3/src/tail.c src-4.5.3-local/src/tail.c
--- src-4.5.3/src/tail.c 2002-10-13 16:03:08.000000000 +0200
+++ src-4.5.3-local/src/tail.c 2002-10-22 14:16:36.000000000 +0200
@@ -42,6 +42,10 @@
#include "xstrtol.h"
#include "xstrtod.h"
+#if ! defined(HAVE_MEMRCHR) /* Needed on AIX and Irix */
+extern void *memrchr (const void *__s, int __c, size_t __n);
+#endif /* HAVE_MEMRCHR */
+
/* The official name of this program (e.g., no `g' prefix). */
#define PROGRAM_NAME "tail"