$OpenBSD: patch-gl_unistd_in_h,v 1.1 2012/09/05 07:15:50 ajacoutot Exp $
--- gl/unistd.in.h.orig	Mon Sep  3 15:41:14 2012
+++ gl/unistd.in.h	Mon Sep  3 15:41:28 2012
@@ -123,7 +123,7 @@
 
 /* Get getopt(), optarg, optind, opterr, optopt.
    But avoid namespace pollution on glibc systems.  */
-#if @GNULIB_UNISTD_H_GETOPT@ && !defined __GLIBC__ && !defined _GL_SYSTEM_GETOPT
+#if @GNULIB_UNISTD_H_GETOPT@ && !defined __GLIBC__ && !defined _GL_SYSTEM_GETOPT && !defined __OpenBSD__
 # include <getopt.h>
 #endif
 
