$OpenBSD: patch-libgphoto2_port_gphoto2_gphoto2-port-portability_h,v 1.2 2008/12/08 14:20:10 ajacoutot Exp $
--- libgphoto2_port/gphoto2/gphoto2-port-portability.h.orig	Sun Jul 13 22:11:11 2008
+++ libgphoto2_port/gphoto2/gphoto2-port-portability.h	Tue Nov 11 14:58:37 2008
@@ -153,6 +153,7 @@ typedef struct {
 /* yummy. :) */
 
 /* XOPEN needed for usleep */
+#ifndef __OpenBSD__
 #ifndef _XOPEN_SOURCE
 # define _XOPEN_SOURCE 500
 #else
@@ -161,11 +162,14 @@ typedef struct {
 #  define _XOPEN_SOURCE 500
 # endif
 #endif
+#endif
 
 /* for nanosleep */
+#ifndef __OpenBSD__
 # ifndef _POSIX_C_SOURCE
 #  define _POSIX_C_SOURCE 199309
 # endif
+#endif
 # include <time.h>
 
 # include <strings.h>
