kernel: add memmem to available functions

It will be needed in the VESA driver to locate things in the VESA BIOS.

Change-Id: Iab42886beb99414fec4d1ad99a08299be679b4d6
Reviewed-on: https://review.haiku-os.org/c/haiku/+/4623
Reviewed-by: waddlesplash <[email protected]>
This commit is contained in:
Adrien Destugues
2021-10-20 17:17:18 +00:00
committed by waddlesplash
parent 60ffcc21fb
commit 56d38808a5
2 changed files with 5 additions and 0 deletions
+1
View File
@@ -27,6 +27,7 @@
* SUCH DAMAGE.
*/
#define _GNU_SOURCE
#include <string.h>
/*
+4
View File
@@ -2,6 +2,7 @@ SubDir HAIKU_TOP src system kernel lib ;
UsePrivateHeaders shared ;
UsePrivateHeaders [ FDirName libroot locale ] ;
UseHeaders [ FDirName $(HAIKU_TOP) headers compatibility gnu ] : true ;
# force inclusion of kernel_lib.h
local kernelLibHeader = [ FDirName $(SUBDIR) kernel_lib.h ] ;
@@ -9,6 +10,7 @@ CCFLAGS += -include $(kernelLibHeader) ;
C++FLAGS += -include $(kernelLibHeader) ;
local gnuSources = [ FDirName $(HAIKU_TOP) src libs gnu ] ;
local librootSources = [ FDirName $(HAIKU_TOP) src system libroot ] ;
local librootOSSources = [ FDirName $(librootSources) os ] ;
local posixSources = [ FDirName $(librootSources) posix ] ;
@@ -43,6 +45,7 @@ SEARCH_SOURCE += [ FDirName $(posixSources) string ] ;
SEARCH_SOURCE += [ FDirName $(posixSources) sys ] ;
SEARCH_SOURCE += [ FDirName $(posixSources) time ] ;
SEARCH_SOURCE += [ FDirName $(posixSources) unistd ] ;
SEARCH_SOURCE += [ FDirName $(gnuSources) ] ;
KernelMergeObject kernel_lib_posix.o :
# main
@@ -99,6 +102,7 @@ KernelMergeObject kernel_lib_posix.o :
ffs.cpp
memchr.c
memcmp.c
memmem.c
memmove.c
strcasecmp.c
strcasestr.c