Skip to content

Commit

Permalink
Merge pull request #49 from despair86/master
Browse files Browse the repository at this point in the history
define targets for generic BSD and oracle machines
  • Loading branch information
gulrak committed Feb 15, 2020
2 parents 05ecaa4 + c193676 commit e63a58c
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions include/ghc/filesystem.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,12 @@
#ifndef GHC_FILESYSTEM_H
#define GHC_FILESYSTEM_H

// #define BSD manifest constant only in
// sys/param.h
#ifndef _WIN32
#include <sys/param.h>
#endif

#ifndef GHC_OS_DETECTED
#if defined(__APPLE__) && defined(__MACH__)
#define GHC_OS_MACOS
Expand All @@ -54,6 +60,10 @@
#elif defined(_WIN32)
#define GHC_OS_WINDOWS
#define GHC_OS_WIN32
#elif defined(__svr4__)
#define GHC_OS_SYS5R4
#elif defined(BSD)
#define GHC_OS_BSD
#else
#error "Operating system currently not supported!"
#endif
Expand Down Expand Up @@ -106,6 +116,7 @@
#include <sys/time.h>
#include <sys/types.h>
#include <unistd.h>
#include <limits.h>
#ifdef GHC_OS_ANDROID
#include <android/api-level.h>
#endif
Expand Down

0 comments on commit e63a58c

Please sign in to comment.