$OpenBSD: patch-external_glibc_sdfiles_makefile_mk,v 1.2 2006/08/20 03:36:52 kurt Exp $
--- external/glibc/sdfiles/makefile.mk.orig.port	Tue Jun 20 07:47:56 2006
+++ external/glibc/sdfiles/makefile.mk	Fri Aug 18 15:47:42 2006
@@ -53,14 +53,14 @@ CDEFS+=-DHAVE_STRING_H  -DHAVE_CONFIG_H
 
 # --- Files --------------------------------------------------------
 
-OBJFILES=	$(OBJ)$/getopt.obj		\
-			$(OBJ)$/getopt1.obj
+OBJFILES=	$(OBJ)$/getopt.obj	\
+		$(OBJ)$/getopt1.obj
 
 LIB1TARGET=$(SLB)$/$(TARGET).lib
 LIB1ARCHIV=$(LB)$/lib$(TARGET).a
 LIB1OBJFILES=$(OBJFILES)
 
-.IF "$(OS)"=="NETBSD"
+.IF "$(OS)"=="NETBSD" || "$(OS)"=="OPENBSD"
 TARGET2=gnu_readdir_r
 OBJFILES+= $(OBJ)$/readdir_r.obj
 LIB2TARGET=$(SLB)$/$(TARGET2).lib
