mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-06 22:51:41 +00:00
40 lines
864 B
Plaintext
40 lines
864 B
Plaintext
|
--- main.c.orig Fri Sep 19 20:27:37 1997
|
|||
|
+++ main.c Fri Sep 19 20:27:01 1997
|
|||
|
@@ -18,7 +18,14 @@
|
|||
|
#include "date.h"
|
|||
|
#include "event.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 "history.h"
|
|||
|
#include "kyureki.h"
|
|||
|
#include "machine.h"
|
|||
|
@@ -710,7 +717,7 @@
|
|||
|
|
|||
|
va_start(ap, fmt);
|
|||
|
|
|||
|
- fprintf(stderr, "today: ", func);
|
|||
|
+ fprintf(stderr, "today: %s", func);
|
|||
|
if (level != ERR_INFO) {
|
|||
|
fprintf(stderr, "%s: ", statname[level - ERR_WARN]);
|
|||
|
}
|
|||
|
@@ -726,7 +733,11 @@
|
|||
|
/*
|
|||
|
* <20><><EFBFBD><EFBFBD><F3A5BFA5>ץȤ䥨<C8A4>顼<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 SIGINT:
|