[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Patches to compile findutils 4.1 on Linux
From: |
Peter Simons |
Subject: |
Patches to compile findutils 4.1 on Linux |
Date: |
Wed, 4 Jul 2001 06:28:41 +0200 |
I had to add the flag "-D_GNU_SOURCE" to CPPFLAGS. Furthermore, I
applied the following patches:
diff -rcb findutils-4.1/find/defs.h findutils-4.1-patched/find/defs.h
*** findutils-4.1/find/defs.h Wed Nov 2 21:59:15 1994
--- findutils-4.1-patched/find/defs.h Wed Jul 4 06:20:31 2001
***************
*** 301,307 ****
boolean mark_stat P_((struct predicate *tree));
/* util.c */
- char *basename P_((char *fname));
struct predicate *get_new_pred P_((void));
struct predicate *get_new_pred_chk_op P_((void));
struct predicate *insert_primary P_((boolean (*pred_func )()));
--- 301,306 ----
diff -rcb findutils-4.1/find/fstype.c findutils-4.1-patched/find/fstype.c
*** findutils-4.1/find/fstype.c Thu Nov 3 17:33:48 1994
--- findutils-4.1-patched/find/fstype.c Wed Jul 4 06:20:56 2001
***************
*** 30,38 ****
extern int errno;
#endif
- char *strdup ();
- char *strstr ();
-
static char *filesystem_type_uncached P_((char *path, char *relpath, struct
stat *statp));
static int xatoi P_((char *cp));
--- 30,35 ----
diff -rcb findutils-4.1/find/parser.c findutils-4.1-patched/find/parser.c
*** findutils-4.1/find/parser.c Wed Nov 2 21:59:19 1994
--- findutils-4.1-patched/find/parser.c Wed Jul 4 06:21:08 2001
***************
*** 52,65 ****
#define lstat stat
#endif
- char *strstr ();
- int lstat ();
- int stat ();
- #ifndef atol /* for Linux */
- long atol ();
- #endif
- struct tm *localtime ();
-
#ifdef _POSIX_SOURCE
#define endgrent()
#define endpwent()
--- 52,57 ----
diff -rcb findutils-4.1/find/util.c findutils-4.1-patched/find/util.c
*** findutils-4.1/find/util.c Thu Oct 20 05:49:47 1994
--- findutils-4.1-patched/find/util.c Wed Jul 4 06:21:20 2001
***************
*** 21,44 ****
#include <stdio.h>
#include "defs.h"
- /* Return the last component of pathname FNAME, with leading slashes
- compressed into one slash. */
-
- char *
- basename (fname)
- char *fname;
- {
- char *p;
-
- /* For "/", "//", etc., return "/". */
- for (p = fname; *p == '/'; ++p)
- /* Do nothing. */ ;
- if (*p == '\0')
- return p - 1;
- p = strrchr (fname, '/');
- return (p == NULL ? fname : p + 1);
- }
-
/* Return a pointer to a new predicate structure, which has been
linked in as the last one in the predicates list.
--- 21,26 ----
diff -rcb findutils-4.1/lib/nextelem.c findutils-4.1-patched/lib/nextelem.c
*** findutils-4.1/lib/nextelem.c Tue Sep 27 14:02:45 1994
--- findutils-4.1-patched/lib/nextelem.c Wed Jul 4 06:20:01 2001
***************
*** 32,40 ****
#endif
#endif
- char *strdup ();
- void free ();
-
/* Return the next element of a colon-separated path.
A null entry in the path is equivalent to "." (the current directory).
--- 32,37 ----
diff -rcb findutils-4.1/lib/savedir.c findutils-4.1-patched/lib/savedir.c
*** findutils-4.1/lib/savedir.c Fri Oct 7 18:21:34 1994
--- findutils-4.1-patched/lib/savedir.c Wed Jul 4 06:20:14 2001
***************
*** 62,69 ****
#define NULL 0
#endif
- char *stpcpy ();
-
/* Return a freshly allocated string containing the filenames
in directory DIR, separated by '\0' characters;
the end is marked by two '\0' characters in a row.
--- 62,67 ----
diff -rcb findutils-4.1/xargs/xargs.c findutils-4.1-patched/xargs/xargs.c
*** findutils-4.1/xargs/xargs.c Fri Oct 7 18:21:39 1994
--- findutils-4.1-patched/xargs/xargs.c Wed Jul 4 06:21:35 2001
***************
*** 60,68 ****
#define memcpy(dest, source, count) (bcopy((source), (dest), (count)))
#endif
- char *strstr ();
- char *strdup ();
-
#ifndef _POSIX_SOURCE
#include <sys/param.h>
#endif
--- 60,65 ----
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Patches to compile findutils 4.1 on Linux,
Peter Simons <=