pkgsrc-ng/audio/pd/patches/patch-src_x__misc.c
2013-09-26 17:14:40 +02:00

21 lines
758 B
C

$NetBSD: patch-src_x__misc.c,v 1.4 2013/05/29 11:26:12 wiz Exp $
Define missing symbol the same as on FreeBSD/Mac OS X for NetBSD.
https://sourceforge.net/tracker/?func=detail&aid=3411732&group_id=55736&atid=478072
Define missing symbol the same as on FreeBSD/Mac OS X for OpenBSD.
Define missing symbol the same as on FreeBSD/Mac OS X for Solaris.
--- src/x_misc.c.orig 2010-07-28 20:55:17.000000000 +0000
+++ src/x_misc.c
@@ -20,7 +20,7 @@
#include <unistd.h>
#endif /* _WIN32 */
-#if defined (__APPLE__) || defined (__FreeBSD__)
+#if defined (__APPLE__) || defined (__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__) || defined(__sun)
#define CLOCKHZ CLK_TCK
#endif
#if defined (__linux__) || defined (__CYGWIN__) || defined (ANDROID)