LOCAL_PATH:= $(call my-dir)

include $(CLEAR_VARS)

LOCAL_MODULE_PATH := $(TARGET_OUT_SHARED_LIBRARIES)/parameter-framework-plugins/Fs

LOCAL_SRC_FILES := \
    FSSubsystem.cpp \
    FSSubsystemBuilder.cpp \
    FSSubsystemObject.cpp

LOCAL_CFLAGS := -D_POSIX_SOURCE

LOCAL_MODULE := libfs-subsystem

LOCAL_MODULE_TAGS := optional

TARGET_ERROR_FLAGS += -Wno-non-virtual-dtor

LOCAL_C_INCLUDES += $(LOCAL_PATH)/../parameter \
    $(LOCAL_PATH)/../xmlserializer/

LOCAL_C_INCLUDES += \
        external/stlport/stlport/ \
        bionic/libstdc++ \
        bionic/ \
        vendor/intel/hardware/include

LOCAL_C_INCLUDES +=

LOCAL_SHARED_LIBRARIES := libstlport libparameter libxmlserializer libcutils

LOCAL_LDLIBS +=
LOCAL_LDFLAGS +=

include $(BUILD_SHARED_LIBRARY)



LOCAL_PATH:= $(call my-dir)

include $(CLEAR_VARS)

LOCAL_MODULE_PATH := $(TARGET_OUT_SHARED_LIBRARIES)/parameter-framework-plugins/Fs

LOCAL_SRC_FILES := \
    FSSubsystem.cpp \
    FSSubsystemBuilder.cpp \
    FSSubsystemObject.cpp

LOCAL_MODULE := libfs-subsystem

LOCAL_MODULE_TAGS := optional

TARGET_ERROR_FLAGS += -Wno-non-virtual-dtor

LOCAL_C_INCLUDES += $(LOCAL_PATH)/../parameter \
    $(LOCAL_PATH)/../xmlserializer/

LOCAL_C_INCLUDES += \
        external/stlport/stlport/ \
        bionic/libstdc++ \
        bionic/ \
        vendor/intel/hardware/include

LOCAL_C_INCLUDES +=

LOCAL_SHARED_LIBRARIES := libstlport libparameter libxmlserializer libcutils

LOCAL_LDLIBS +=
LOCAL_LDFLAGS +=

include $(BUILD_SHARED_LIBRARY)



Clean the _POSIX_C_SOURCE compilation flag
Clean the _POSIX_C_SOURCE compilation flag

BZ: 105425

__POSIX_VISIBLE will be set to 198808 if _POSIX_SOURCE is defined and
_POSIX_C_SOURCE is not.  This will lead to some bionic/libm
functions invisible to this module.  Not defining any of them would
lead to __POSIX_VISIBLE being set to a safe, default value.

However, either _POSIX_SOURCE or _POSIX_C_SOURCE need to be defined
when using alsa-lib, or it would lead to redefining timeval and
timespec.

So, we have to use _POSIX_C_SOURCE=200809 (the default value if it
wasn't set) for projects using ALSA and we can remove the
_POSIX_SOURCE flags for other projects, that were using it for legacy
reason.

Change-Id: I961b571dd7519ae047c01d6577ee6b6379fa1e5b
Signed-off-by: Du Chenyang <2c6718b0a3944ed9971ba3d0e80672f4fd4b55ef@intel.com>
Signed-off-by: David Wagner <60228a510f9a76940848fa2d29321fc4edfc2119@intel.com>
