$NetBSD: patch-ab,v 1.3 2009/06/04 21:49:18 minskim Exp $

--- compat/getopt.h.orig	2009-03-31 21:21:36.000000000 +0000
+++ compat/getopt.h
@@ -33,7 +33,9 @@
 #ifndef _GETOPT_H_
 #define _GETOPT_H_
 
+#ifndef NO_CDEFS_H
 #include <sys/cdefs.h>
+#endif
 
 /*
  * GNU-like getopt_long() and 4.4BSD getsubopt()/optreset extensions
