1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-14 23:46:10 +00:00
freebsd-ports/japanese/today/files/patch-aa

40 lines
869 B
Plaintext
Raw Normal View History

--- calendar.c.orig Fri Sep 19 20:27:37 1997
+++ calendar.c Fri Sep 19 20:27:00 1997
@@ -37,7 +37,14 @@
#include "common.h"
#include "config.h"
#include "getfile.h"
-#include "getopt.h"
+#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"
#include "kyureki.h"
#include "main.h"
@@ -909,7 +916,7 @@
va_start(ap, fmt);
- fprintf(stderr, "calendar: ", func);
+ fprintf(stderr, "calendar: %s", func);
if (level != ERR_INFO) {
fprintf(stderr, "%s: ", statname[level - ERR_WARN]);
}
@@ -960,7 +967,11 @@
/*
* <20><><EFBFBD><EFBFBD>ˤ<EFBFBD><CBA4><EFBFBD><EFBFBD>ץ<EFBFBD><D7A5><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ǽ<EFBFBD><C7BD><EFBFBD>
*/
+#ifndef __FreeBSD__
void terminate_program(int sig, int subcode)
+#else
+void terminate_program(int sig)
+#endif
{
switch (sig) {
case TERM_MEMERROR: