From: Oliver Kurth Date: Fri, 23 Mar 2018 22:05:35 +0000 (-0700) Subject: FreeBSD open-vm-tools kernel modules compilations cannot locate X-Git-Tag: stable-10.3.0~68 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=09958952cc761075d5546b18bed0ce59260ec4db;p=thirdparty%2Fopen-vm-tools.git FreeBSD open-vm-tools kernel modules compilations cannot locate With the change for VMware headers to utilize the standard types defined in C99 standard headers, the compilation of FreeBSD kernel modules must specifically add /usr/include to the compilation options. CFLAGS += -isystem /usr/include This change updates the Makefiles's for FreeBSD kernel modules and drivers. --- diff --git a/open-vm-tools/modules/freebsd/vmblock/Makefile b/open-vm-tools/modules/freebsd/vmblock/Makefile index f67af0729..e2d3cc6bf 100644 --- a/open-vm-tools/modules/freebsd/vmblock/Makefile +++ b/open-vm-tools/modules/freebsd/vmblock/Makefile @@ -1,6 +1,6 @@ #!/usr/bin/make -f ########################################################## -# Copyright (C) 2006 VMware, Inc. All rights reserved. +# Copyright (C) 2006-2018 VMware, Inc. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions @@ -59,6 +59,7 @@ CFLAGS += $(INCLUDE) -Wall -Werror CFLAGS += -I$(OVT_SOURCE_DIR)/modules/freebsd/shared CFLAGS += -I$(OVT_SOURCE_DIR)/modules/freebsd/vmblock CFLAGS += -I$(OVT_SOURCE_DIR)/modules/shared/vmblock + CFLAGS += -isystem /usr/include VPATH := $(OVT_SOURCE_DIR)/modules/shared/vmblock .else CFLAGS += -Ishared diff --git a/open-vm-tools/modules/freebsd/vmmemctl/Makefile b/open-vm-tools/modules/freebsd/vmmemctl/Makefile index b860ca625..ba3fd142c 100644 --- a/open-vm-tools/modules/freebsd/vmmemctl/Makefile +++ b/open-vm-tools/modules/freebsd/vmmemctl/Makefile @@ -1,6 +1,6 @@ #!/usr/bin/make -f ########################################################## -# Copyright (C) 2007 VMware, Inc. All rights reserved. +# Copyright (C) 2007-2018 VMware, Inc. All rights reserved. # # This program is free software; you can redistribute it and/or modify it # under the terms of the GNU General Public License as published by the @@ -46,6 +46,7 @@ NO_OBJ = 1 CFLAGS += -I$(OVT_SOURCE_DIR)/lib/backdoor CFLAGS += -I$(OVT_SOURCE_DIR)/modules/freebsd/shared CFLAGS += -I$(OVT_SOURCE_DIR)/modules/shared/vmmemctl + CFLAGS += -isystem /usr/include VPATH := $(OVT_SOURCE_DIR)/lib/backdoor VPATH := $(VPATH):$(OVT_SOURCE_DIR)/modules/shared/vmmemctl .else diff --git a/open-vm-tools/modules/freebsd/vmxnet/Makefile b/open-vm-tools/modules/freebsd/vmxnet/Makefile index 8bf249d38..9ce0ad165 100644 --- a/open-vm-tools/modules/freebsd/vmxnet/Makefile +++ b/open-vm-tools/modules/freebsd/vmxnet/Makefile @@ -1,6 +1,6 @@ #!/usr/bin/make -f ########################################################## -# Copyright (C) 2007 VMware, Inc. All rights reserved. +# Copyright (C) 2007-2018 VMware, Inc. All rights reserved. # # This program is free software; you can redistribute it and/or modify it # under the terms of the GNU General Public License as published by the @@ -40,6 +40,7 @@ NO_OBJ = 1 .ifdef OVT_SOURCE_DIR CFLAGS += -I$(OVT_SOURCE_DIR)/lib/include CFLAGS += -I$(OVT_SOURCE_DIR)/modules/shared/vmxnet + CFLAGS += -isystem /usr/include .else CFLAGS += -Ishared .endif