@@ -103,6 +103,13 @@
#define memclear(s) memset(&s, 0, sizeof(s))
+/* for systems like hurd, which does not have PATH_MAX.
+ Usage is only for string manipulation, so it is save to define it.
+ 1kB will be plenty space.*/
+#ifndef PATH_MAX
+#define PATH_MAX (1024)
+#endif
+
static drmServerInfoPtr drm_server_info;
void drmSetServerInfo(drmServerInfoPtr info)
@@ -58,7 +58,11 @@ extern "C" {
#else /* One of the *BSDs */
+#if defined(__GNU__)
+#include <mach/i386/ioccom.h>
+#else
#include <sys/ioccom.h>
+#endif
#define DRM_IOCTL_NR(n) ((n) & 0xff)
#define DRM_IOC_VOID IOC_VOID
#define DRM_IOC_READ IOC_OUT