diff options
author | asami <asami@FreeBSD.org> | 1997-03-25 16:14:44 +0800 |
---|---|---|
committer | asami <asami@FreeBSD.org> | 1997-03-25 16:14:44 +0800 |
commit | f8097356f9d12807f72432a8136fba244c6b62e3 (patch) | |
tree | 949de15201a298f86ae645205af5fd1bc48f4305 /japanese/today/files | |
parent | 3deae92dada43efca6d6783df37caef912d26b14 (diff) | |
download | freebsd-ports-gnome-f8097356f9d12807f72432a8136fba244c6b62e3.tar.gz freebsd-ports-gnome-f8097356f9d12807f72432a8136fba244c6b62e3.tar.zst freebsd-ports-gnome-f8097356f9d12807f72432a8136fba244c6b62e3.zip |
Hand-edit patch to cope with getopt declarations moving from
stdlib.h to unistd.h in -current (from Lite2). Note this requires
the latest gcc that defines __FreeBSD__ to 3.
Diffstat (limited to 'japanese/today/files')
-rw-r--r-- | japanese/today/files/patch-aa | 20 |
1 files changed, 15 insertions, 5 deletions
diff --git a/japanese/today/files/patch-aa b/japanese/today/files/patch-aa index 88c0ae5a0f03..b410ea9289e7 100644 --- a/japanese/today/files/patch-aa +++ b/japanese/today/files/patch-aa @@ -14,11 +14,16 @@ diff -c old/calendar.c new/calendar.c #include "getsb.h" #include "kyureki.h" #include "main.h" ---- 37,45 ---- +--- 37,50 ---- #include "common.h" #include "config.h" #include "getfile.h" -! #ifndef __FreeBSD__ +! #ifdef __FreeBSD__ +! /* FreeBSD version 2.x and earlier has them defined in stdlib.h */ +! #if __FreeBSD__ >= 3 +! #include <unistd.h> +! #endif +! #else ! #include "getopt.h" ! #endif #include "getsb.h" @@ -168,11 +173,16 @@ diff -c old/main.c new/main.c #include "history.h" #include "kyureki.h" #include "machine.h" ---- 18,26 ---- +--- 18,31 ---- #include "date.h" #include "event.h" #include "getfile.h" -! #ifndef __FreeBSD__ +! #ifdef __FreeBSD__ +! /* FreeBSD version 2.x and earlier has them defined in stdlib.h */ +! #if __FreeBSD__ >= 3 +! #include <unistd.h> +! #endif +! #else ! #include "getopt.h" ! #endif #include "history.h" @@ -393,7 +403,7 @@ diff -c old/version.c new/version.c *** 28,33 **** --- 28,34 ---- const char Version[] = "today " __DATE__ " version 2.10B (Àµ¼°ÈÇ)"; - const char RCSid[] ="$Id: patch-aa,v 1.1.1.1 1996/10/18 15:04:50 asami Exp $"; + const char RCSid[] ="$Id: patch-aa,v 1.1.1.2 1996/11/10 12:40:20 asami Exp $"; const char UseLanguage[] = + #if !defined(TRANS) #if defined(human68k) |