From 81c2416d8e09987ccee9fa5194ab1801c44380df Mon Sep 17 00:00:00 2001 From: Derrick Brashear Date: Fri, 8 Apr 2011 11:12:34 -0400 Subject: [PATCH] add tsearch to Windows roken now has tsearch for windows. add it. Change-Id: I73f609d6285f52bb2b52f580b95ca4510204efa1 Reviewed-on: http://gerrit.openafs.org/4451 Tested-by: BuildBot Reviewed-by: Derrick Brashear --- acinclude.m4 | 5 +++++ src/roken/NTMakefile | 7 ++++++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/acinclude.m4 b/acinclude.m4 index f896bd46b..6b3491122 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -1414,6 +1414,10 @@ AC_REPLACE_FUNCS([ \ strnlen \ strlcpy \ strsep \ + tdelete \ + tfind \ + tsearch \ + twalk \ verr \ verrx \ vsyslog \ @@ -1426,6 +1430,7 @@ AC_REPLACE_FUNCS([ \ dnl Headers that we're going to try and get from libroken AC_CHECK_HEADERS([ \ err.h \ + search.h \ ]) AC_CHECK_DECLS([h_errno], [], [], [ diff --git a/src/roken/NTMakefile b/src/roken/NTMakefile index 91bc1c6d7..bb5644504 100644 --- a/src/roken/NTMakefile +++ b/src/roken/NTMakefile @@ -15,7 +15,8 @@ INCFILEDIR = $(DESTDIR)\include INCFILES = \ $(INCFILEDIR)\err.h \ - $(INCFILEDIR)\roken.h + $(INCFILEDIR)\roken.h \ + $(INCFILEDIR)\search.h ROKEN_INCFILES = \ $(INCFILEDIR)\roken-common.h \ @@ -49,6 +50,7 @@ ROKEN_OBJS = \ $(OUT)\strlcpy.obj \ $(OUT)\strnlen.obj \ $(OUT)\strsep.obj \ + $(OUT)\tsearch.obj \ $(OUT)\verr.obj \ $(OUT)\verrx.obj \ $(OUT)\vwarn.obj \ @@ -72,6 +74,9 @@ roken.h: $(ROKEN)\roken.h.in err.h: $(ROKEN)\err.hin $(COPY) $** $@ +search.h: $(ROKEN)\search.hin + $(COPY) $** $@ + !if !defined(NMAKE) NTMAKE = nmake /nologo /f ntmakefile !endif -- 2.39.5