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
11 #ifndef __POSIX_COMPAT_H__
12 #define __POSIX_COMPAT_H__
17 #if !defined(SSIZE_MAX) && !defined(HAVE_SSIZE_T)
21 typedef SSIZE_T ssize_t
;
22 #define SSIZE_MAX SSIZE_T_MAX
25 #endif /* !SSIZE_MAX && !HAVE_SSIZE_T */
27 #endif /* __POSIX_COMPAT_H__ */