mirror of
https://github.com/trapexit/mergerfs.git
synced 2024-11-22 11:02:35 +08:00
use standard platform macros. closes #43
This commit is contained in:
parent
805bc2d2e6
commit
1f90203025
8
Makefile
8
Makefile
|
@ -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:
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue
Block a user