summaryrefslogtreecommitdiff
path: root/japanese/today
diff options
context:
space:
mode:
authorSatoshi Asami <asami@FreeBSD.org>1997-03-25 08:14:44 +0000
committerSatoshi Asami <asami@FreeBSD.org>1997-03-25 08:14:44 +0000
commitef4155d09f367aaad48dff405bec31db8dbf35a1 (patch)
tree23c90b4335fb5c4ccab3c764d8c65764c68a9c18 /japanese/today
parentremove extrainous PKGNAME (diff)
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.
Notes
Notes: svn path=/head/; revision=5998
Diffstat (limited to 'japanese/today')
-rw-r--r--japanese/today/files/patch-aa20
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)