freebsd-ports/audio/libjackasyn/files/patch-libjackoss.h
Jose Alonso Cardenas Marquez cd85452c48 - Fix build on 4.x [1]
- Bump PORTREVISION

Reported by:	kris [1]
Approved by:	garga (mentor)
2006-09-02 14:26:29 +00:00

23 lines
711 B
C

--- libjackoss.h Mon Mar 6 07:14:48 2006
+++ libjackoss.h Thu Mar 23 22:22:42 2006
@@ -2,6 +2,11 @@
#define __LIBJACKOSS_H__
#include <sys/types.h>
#include <sys/poll.h>
+#include <sys/param.h>
+
+#if __FreeBSD_version < 500000
+typedef unsigned int nfds_t;
+#endif
#ifdef __cplusplus
extern "C" {
@@ -15,7 +20,7 @@
int jackoss_select(int n, fd_set *readfds,
fd_set *writefds,
fd_set *exceptfds, struct timeval *timeout);
- int jackoss_poll (struct pollfd *__fds, nfds_t __nfds, int __timeout);
+ int jackoss_poll(struct pollfd *__fds, nfds_t __nfds, int __timeout);
/* these are mainly need for sox */
FILE * jackoss_fopen (const char *pathname, const char *mode);