0
0
Fork 0
haikuports/app-arch/arc/patches/arc-5.21q.patchset

44 lines
1.1 KiB
Plaintext

From 59992a4f66278eeb1832e5dbce33619b864c4f58 Mon Sep 17 00:00:00 2001
From: Chris Roberts <cpr420@gmail.com>
Date: Sun, 24 Nov 2013 18:37:38 -0700
Subject: Minor Haiku fixes
diff --git a/Makefile b/Makefile
index 7c1dbfd..a8e8f8b 100644
--- a/Makefile
+++ b/Makefile
@@ -38,9 +38,9 @@ PROG =
# (See the Sysvarcstuf shar file)
#SYSTEM = -DGEMDOS=1 -fstrength-reduce -fomit-frame-pointer -finline-functions -fdefer-pop -mpcrel
#SYSTEM = -DBSD=1
-SYSTEM = -DSYSV=1
+SYSTEM = -DSYSV=1 -DHAIKU=1
-OPT = -O -Wall
+OPT = -O2 -Wall
# For MWC 3.0 on the Atari ST, use:
#CFLAGS = -VCOMPAC -VPEEP
CFLAGS = $(OPT) $(SYSTEM)
@@ -136,4 +136,3 @@ install: all
install -s -m 0755 -D marc $(DESTDIR)$(PREFIX)/bin/marc
install -m 0644 -D arc.1 $(DESTDIR)$(PREFIX)/share/man/man1/arc.1
install -m 0644 -D marc.1 $(DESTDIR)$(PREFIX)/share/man/man1/marc.1
-
diff --git a/arcdos.c b/arcdos.c
index af98bd4..c297d7e 100644
--- a/arcdos.c
+++ b/arcdos.c
@@ -28,7 +28,7 @@
#if UNIX
#include <sys/types.h>
#include <sys/stat.h>
-#if BSD
+#if BSD || HAIKU
#include <sys/time.h>
#else
#include <time.h> /* Sys V. Bleah. */
--
2.14.2