cdrtools: fix the build

This commit is contained in:
Jerome Duval
2015-06-09 22:53:08 +00:00
parent 4888abc8a3
commit 11d89cae5a

View File

@@ -17,7 +17,7 @@ diff -urp cdrtools-3.01/DEFAULTS/Defaults.haiku cdrtools-3.01-haiku/DEFAULTS/Def
#
###########################################################################
-INS_BASE= /boot/opt/schily
+INS_BASE= $(shell finddir B_SYSTEM_DIRECTORY)
+#INS_BASE= $(shell finddir B_SYSTEM_DIRECTORY)
INS_KBASE= /
INS_RBASE= /
#
@@ -52,3 +52,17 @@ diff -urp cdrtools-3.01/libscg/scsi-beos.c cdrtools-3.01-haiku/libscg/scsi-beos.
} else {
char *tgtstr = (tgt == 0) ? "master" : (tgt == 1) ? "slave" : "dummy";
js_snprintf(buf, sizeof (buf),
diff --git a/include/schily/wait.h b/include/schily/wait.h
index 806a5da..6d22f10 100644
--- a/include/schily/wait.h
+++ b/include/schily/wait.h
@@ -160,7 +160,7 @@ extern "C" {
# endif
# ifndef WCOREDUMP
# ifdef WIFCORED /* Haiku */
-# define WCOREDUMP(status) (WIFCORED(_W_I(status))
+# define WCOREDUMP(status) (WIFCORED(_W_I(status)))
# else
# define WCOREDUMP(status) (_W_I(status) & 0x80)
# endif