pkgsrc/audio/libvisual/patches/patch-libvisual_lv__os.c
maya 029129db8c libvisual: comment out HAVE_SCHED on macos. it is missing the optional
sched_setscheduler needed by this package.

XXX would be nicer to have done this via an upstream-friendly
config test.

Omitting PKGREVISION bump since it's a compile fix.

From Clement Bouvier in PR pkg/54416.
2019-10-23 00:13:40 +00:00

23 lines
676 B
C

A
$NetBSD: patch-libvisual_lv__os.c,v 1.1 2019/10/23 00:13:40 maya Exp $
macos ox has header sched.h but does not provide the realtime function:
int sched_setscheduler(pid_t, int, const struct sched_param *);
(optional according to open group).
so it is necessary to force real time defined functions in the package are not supported on apple system.
(PR pkg/54416)
--- libvisual/lv_os.c.orig 2006-01-26 15:13:37.000000000 +0000
+++ libvisual/lv_os.c
@@ -31,7 +31,9 @@
#ifdef HAVE_SCHED_H
# include <sched.h>
# include <sys/types.h>
+#ifndef __APPLE__
# define HAVE_SCHED 1
+#endif
#elif defined HAVE_SYS_SCHED_H
# include <sys/sched.h>
# include <sys/types.h>