]> git.ipfire.org Git - thirdparty/open-vm-tools.git/commitdiff
FreeBSD open-vm-tools kernel modules compilations cannot locate <stdint.h>
authorOliver Kurth <okurth@vmware.com>
Fri, 23 Mar 2018 22:05:35 +0000 (15:05 -0700)
committerOliver Kurth <okurth@vmware.com>
Fri, 23 Mar 2018 22:05:35 +0000 (15:05 -0700)
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.

open-vm-tools/modules/freebsd/vmblock/Makefile
open-vm-tools/modules/freebsd/vmmemctl/Makefile
open-vm-tools/modules/freebsd/vmxnet/Makefile

index f67af0729f95f7794abd2f2641c4de11be2251b8..e2d3cc6bfdfb2fcd87cb1fb0b1618df3ed71a3a7 100644 (file)
@@ -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
index b860ca62531cec3163ee6108407e93491e44e447..ba3fd142cf275b1a4f2dfc030e7a41cd6a6cc1fd 100644 (file)
@@ -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
index 8bf249d388fc9a721223582c9d1738a7b96eb06b..9ce0ad1650a3669bec4157f794a5c4372595d376 100644 (file)
@@ -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