add tsearch to Windows
authorDerrick Brashear <shadow@dementia.org>
Fri, 8 Apr 2011 15:12:34 +0000 (11:12 -0400)
committerDerrick Brashear <shadow@dementia.org>
Mon, 11 Apr 2011 03:48:13 +0000 (20:48 -0700)
roken now has tsearch for windows. add it.

Change-Id: I73f609d6285f52bb2b52f580b95ca4510204efa1
Reviewed-on: http://gerrit.openafs.org/4451
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Derrick Brashear <shadow@dementia.org>

acinclude.m4
src/roken/NTMakefile

index f896bd4..6b34911 100644 (file)
@@ -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], [], [], [
index 91bc1c6..bb56445 100644 (file)
@@ -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