diff options
Diffstat (limited to 'include/jemalloc/internal/jemalloc_internal_decls.h')
-rw-r--r-- | include/jemalloc/internal/jemalloc_internal_decls.h | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/include/jemalloc/internal/jemalloc_internal_decls.h b/include/jemalloc/internal/jemalloc_internal_decls.h index 7d6053e21..983027c86 100644 --- a/include/jemalloc/internal/jemalloc_internal_decls.h +++ b/include/jemalloc/internal/jemalloc_internal_decls.h @@ -5,6 +5,7 @@ #ifdef _WIN32 # include <windows.h> # include "msvc_compat/windows_extra.h" +# include "msvc_compat/strings.h" # ifdef _WIN64 # if LG_VADDR <= 32 # error Generate the headers using x64 vcargs @@ -31,8 +32,12 @@ # include <sys/uio.h> # endif # include <pthread.h> -# ifdef __FreeBSD__ +# if defined(__FreeBSD__) || defined(__DragonFly__) # include <pthread_np.h> +# include <sched.h> +# if defined(__FreeBSD__) +# define cpu_set_t cpuset_t +# endif # endif # include <signal.h> # ifdef JEMALLOC_OS_UNFAIR_LOCK @@ -91,4 +96,13 @@ isblank(int c) { #endif #include <fcntl.h> +/* + * The Win32 midl compiler has #define small char; we don't use midl, but + * "small" is a nice identifier to have available when talking about size + * classes. + */ +#ifdef small +# undef small +#endif + #endif /* JEMALLOC_INTERNAL_H */ |