26 lines
760 B
Plaintext
26 lines
760 B
Plaintext
$OpenBSD: patch-src_common_darktable_h,v 1.3 2012/09/14 09:50:19 sthen Exp $
|
|
--- src/common/darktable.h.orig Sat Jul 21 04:44:08 2012
|
|
+++ src/common/darktable.h Tue Aug 21 10:06:41 2012
|
|
@@ -19,6 +19,10 @@
|
|
#define DARKTABLE_H
|
|
|
|
// just to be sure. the build system should set this for us already:
|
|
+#if defined(__NetBSD__) || defined(__OpenBSD__)
|
|
+#include <sys/param.h>
|
|
+#include <sys/sysctl.h>
|
|
+#endif
|
|
#ifndef _XOPEN_SOURCE
|
|
#define _XOPEN_SOURCE 700 // for localtime_r and dprintf
|
|
#endif
|
|
@@ -46,10 +50,6 @@
|
|
#if defined(__DragonFly__) || defined(__FreeBSD__)
|
|
typedef unsigned int u_int;
|
|
#include <sys/types.h>
|
|
-#include <sys/sysctl.h>
|
|
-#endif
|
|
-#if defined(__NetBSD__) || defined(__OpenBSD__)
|
|
-#include <sys/param.h>
|
|
#include <sys/sysctl.h>
|
|
#endif
|
|
|