diff options
| author | Warner Losh <imp@FreeBSD.org> | 2025-02-05 23:20:13 +0000 |
|---|---|---|
| committer | Warner Losh <imp@FreeBSD.org> | 2025-02-05 23:20:13 +0000 |
| commit | 48ec896efb0b78141df004eaa21288b84590c9da (patch) | |
| tree | 33799792fd95c266d472ab1ae51d50ab4f942eb3 /include/jemalloc/internal/jemalloc_internal_decls.h | |
| parent | d28d7fbede216494aa3942af042cc084fcd6098a (diff) | |
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 7d6053e219e0..983027c86722 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 */ |
