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