dcerpc-netlogon: split out find_tmp_netlogon_auth_vars()
[wireshark-sm.git] / include / ws_posix_compat.h
blob61cefc9370d019ae66dc0438621d391636473bee
1 /* ws_posix_compat.h
2 * Definitions for POSIX compatibility.
4 * Wireshark - Network traffic analyzer
5 * By Gerald Combs <gerald@wireshark.org>
6 * Copyright 1998 Gerald Combs
8 * SPDX-License-Identifier: GPL-2.0-or-later
9 */
11 #ifndef __POSIX_COMPAT_H__
12 #define __POSIX_COMPAT_H__
14 #include <stdint.h>
15 #include <limits.h>
17 #if !defined(SSIZE_MAX) && !defined(HAVE_SSIZE_T)
18 #if defined(_WIN32)
19 #include <BaseTsd.h>
21 typedef SSIZE_T ssize_t;
22 #define SSIZE_MAX SSIZE_T_MAX
24 #endif /* _WIN32 */
25 #endif /* !SSIZE_MAX && !HAVE_SSIZE_T */
27 #endif /* __POSIX_COMPAT_H__ */