openbsd-ports/audio/mpegaudio/patches/patch-common_h
2003-04-14 09:46:06 +00:00

21 lines
672 B
Plaintext

$OpenBSD: patch-common_h,v 1.1 2003/04/14 09:46:06 avsm Exp $
--- common.h.orig Wed Jan 5 01:42:00 1994
+++ common.h Mon Apr 14 10:41:07 2003
@@ -73,7 +73,7 @@ common.h
#endif
#ifdef UNIX
-#define TABLES_PATH "tables" /* to find data files */
+#define TABLES_PATH PREFIX "/lib/mpegaudio/tables" /* to find data files */
/* name of environment variable holding path of table files */
#define MPEGTABENV "MPEGTABLES"
#define PATH_SEPARATOR "/" /* how to build paths */
@@ -116,6 +116,7 @@ common.h
#ifdef UNIX
#include <unistd.h>
+#include <stdlib.h>
#endif /* UNIX */
#ifdef MACINTOSH