libxml2: copy the xml2-config to the crosstoolsdir and patch the paths in the native...
[AROS-Contrib.git] / gnu / diffutils / diffutils-2.8.4-aros.diff
blob28d88fac02c0337308106c1502477bf48ea8fa87
1 diff -ruN diffutils-2.8.4/config/config.sub diffutils-2.8.4.aros/config/config.sub
2 --- diffutils-2.8.4/config/config.sub 2002-06-22 13:00:04.000000000 +0200
3 +++ diffutils-2.8.4.aros/config/config.sub 2002-06-28 09:01:02.000000000 +0200
4 @@ -1214,6 +1214,9 @@
5 -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
6 os=-mint
7 ;;
8 + -aros*)
9 + os=-aros
10 + ;;
11 -none)
14 diff -ruN diffutils-2.8.4/lib/fnmatch_.h diffutils-2.8.4.aros/lib/fnmatch_.h
15 --- diffutils-2.8.4/lib/fnmatch_.h 2002-06-11 07:53:54.000000000 +0200
16 +++ diffutils-2.8.4.aros/lib/fnmatch_.h 2002-06-28 09:01:02.000000000 +0200
17 @@ -35,6 +35,9 @@
18 non-ANSI C where `const' is problematical. */
19 #endif /* C++ or ANSI C. */
21 +#ifdef __AROS__
22 +# undef __const
23 +#endif
24 #ifndef __const
25 # define __const const
26 #endif
27 diff -ruN diffutils-2.8.4/lib/waitpid.c diffutils-2.8.4.aros/lib/waitpid.c
28 --- diffutils-2.8.4/lib/waitpid.c 2002-03-01 08:46:31.000000000 +0100
29 +++ diffutils-2.8.4.aros/lib/waitpid.c 2002-06-28 09:01:02.000000000 +0200
30 @@ -20,6 +20,7 @@
31 # include <config.h>
32 #endif
34 +#include <sys/types.h>
35 #include <errno.h>
36 #ifndef errno
37 extern int errno;
38 diff -ruN diffutils-2.8.4/src/system.h diffutils-2.8.4.aros/src/system.h
39 --- diffutils-2.8.4/src/system.h 2002-06-11 08:06:32.000000000 +0200
40 +++ diffutils-2.8.4.aros/src/system.h 2012-04-01 11:50:41.470461653 +0200
41 @@ -94,7 +94,8 @@
43 #if HAVE_TIME_H
44 # include <time.h>
45 -#else
46 +#endif
47 +#if HAVE_SYS_TIME_H
48 # include <sys/time.h>
49 #endif