use standard platform macros. closes #43

This commit is contained in:
Antonio SJ Musumeci 2015-02-02 21:30:31 -05:00
parent 805bc2d2e6
commit 1f90203025
3 changed files with 4 additions and 12 deletions

View File

@ -91,14 +91,6 @@ $(warning "xattr not available: disabling")
CFLAGS += -DWITHOUT_XATTR
endif
KERNEL = $(shell uname -s)
ifeq ($(KERNEL),Linux)
CFLAGS += -DLINUX
endif
ifeq ($(KERNEL),Darwin)
CFLAGS += -DOSX
endif
all: $(TARGET) clonepath
help:

View File

@ -24,8 +24,8 @@
#include "ugid.hpp"
#if defined LINUX
#elif defined OSX
#if defined __linux__
#elif defined __APPLE__
#else
pthread_mutex_t mergerfs::ugid::SetResetGuard::lock = PTHREAD_MUTEX_INITIALIZER;
#endif

View File

@ -25,9 +25,9 @@
#ifndef __UGID_HPP__
#define __UGID_HPP__
#if defined LINUX
#if defined __linux__
#include "ugid_linux.hpp"
#elif defined OSX
#elif defined __APPLE__
#include "ugid_osx.hpp"
#else
#include "ugid_mutex.hpp"