blob: 60701bb60b4e99b0f6b8e5bef7c35009de3535a5 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
--- plink_common.h.orig 2020-01-22 01:51:56 UTC
+++ plink_common.h
@@ -122,7 +122,7 @@
#define EOLN_STR "\n"
#define FOPEN_RB "r"
#define FOPEN_WB "w"
- #ifndef __APPLE__
+ #if !defined(__APPLE__) && !defined(__FreeBSD__)
// argh
// not sure what the right threshold actually is, but this works for now
// (may break on gcc <3.0? but that shouldn't matter anymore)
@@ -143,7 +143,7 @@
#define CLZLU __builtin_clzl
#ifndef __LP64__
// attempt to patch GCC 6 build failure
- #if (__GNUC__ <= 4) && (__GNUC_MINOR__ < 8)
+ #if !defined(__FreeBSD__) && (__GNUC__ <= 4) && (__GNUC_MINOR__ < 8)
#ifndef uintptr_t
#define uintptr_t unsigned long
#endif
|