guido+libpws@0: /* guido+libpws@0: * Copyright (C) 2015 Guido Berhoerster guido+libpws@0: * guido+libpws@0: * Permission is hereby granted, free of charge, to any person obtaining guido+libpws@0: * a copy of this software and associated documentation files (the guido+libpws@0: * "Software"), to deal in the Software without restriction, including guido+libpws@0: * without limitation the rights to use, copy, modify, merge, publish, guido+libpws@0: * distribute, sublicense, and/or sell copies of the Software, and to guido+libpws@0: * permit persons to whom the Software is furnished to do so, subject to guido+libpws@0: * the following conditions: guido+libpws@0: * guido+libpws@0: * The above copyright notice and this permission notice shall be included guido+libpws@0: * in all copies or substantial portions of the Software. guido+libpws@0: * guido+libpws@0: * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, guido+libpws@0: * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF guido+libpws@0: * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. guido+libpws@0: * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY guido+libpws@0: * CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, guido+libpws@0: * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE guido+libpws@0: * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. guido+libpws@0: */ guido+libpws@0: guido+libpws@0: #ifndef COMPAT_H guido+libpws@0: #define COMPAT_H guido+libpws@0: guido+libpws@0: #include "compat/pws-compat.h" guido+libpws@0: guido+libpws@0: /* for FreeBSD getline() */ guido+libpws@0: #define _WITH_GETLINE guido+libpws@0: guido+libpws@0: /* for glibc endian.h */ guido+libpws@0: #define _BSD_SOURCE guido+libpws@7: #define _DEFAULT_SOURCE guido+libpws@0: guido+libpws@0: #if !defined(HAVE_ENDIAN_H) && !defined(HAVE_SYS_ENDIAN_H) guido+libpws@0: #include "compat/endian.h" guido+libpws@0: #endif /* !defined(HAVE_ENDIAN_H) && !defined(HAVE_SYS_ENDIAN_H) */ guido+libpws@0: guido+libpws@2: #ifndef HAVE_ERR_H guido+libpws@2: #include "compat/err.h" guido+libpws@2: #endif /* !HAVE_ERR_H */ guido+libpws@2: guido+libpws@0: #ifndef HAVE_GETENTROPY guido+libpws@0: #include "compat/getentropy.h" guido+libpws@0: #endif /* !HAVE_GETENTROPY */ guido+libpws@0: guido+libpws@2: #ifndef HAVE_GETLINE guido+libpws@2: #include "compat/getline.h" guido+libpws@2: #endif /* !HAVE_GETLINE */ guido+libpws@2: guido+libpws@2: #ifndef HAVE_READPASSPHRASE_H guido+libpws@2: #include "compat/readpassphrase.h" guido+libpws@2: #endif /* !HAVE_READPASSPHRASE_H */ guido+libpws@2: guido+libpws@2: #ifndef HAVE_SETPROGNAME guido+libpws@2: #include "compat/setprogname.h" guido+libpws@2: #endif /* !HAVE_SETPROGNAME */ guido+libpws@2: guido+libpws@0: #ifndef HAVE_SYS_TREE_H guido+libpws@0: #include "compat/tree.h" guido+libpws@0: #endif /* !HAVE_SYS_TREE_H */ guido+libpws@0: guido+libpws@2: #ifndef HAVE_VIS_H guido+libpws@2: #include "compat/vis.h" guido+libpws@2: #endif /* !HAVE_VIS_H */ guido+libpws@2: guido+libpws@0: #endif /* COMPAT_H */