Reimplement Language Modelling weights
[xapian.git] / xapian-core / common / safesysexits.h
blob8678f327043440ff9818c5177ac3dcbdff10c4b2
1 /** @file
2 * @brief #include <sysexits.h> with portability workarounds.
3 */
4 /* Copyright (C) 2023 Olly Betts
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU General Public License as
8 * published by the Free Software Foundation; either version 2 of the
9 * License, or (at your option) any later version.
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21 #ifndef XAPIAN_INCLUDED_SAFESYSEXITS_H
22 #define XAPIAN_INCLUDED_SAFESYSEXITS_H
24 #ifndef PACKAGE
25 # error config.h must be included first in each C++ source file
26 #endif
28 #ifdef HAVE_SYSEXITS_H
29 # include <sysexits.h>
30 #endif
32 #ifndef EX_UNAVAILABLE
33 # define EX_UNAVAILABLE 69
34 #endif
35 #ifndef EX_OSERR
36 # define EX_OSERR 71
37 #endif
38 #ifndef EX_TEMPFAIL
39 # define EX_TEMPFAIL 75
40 #endif
41 #ifndef EX_NOPERM
42 # define EX_NOPERM 77
43 #endif
45 #endif // XAPIAN_INCLUDED_SAFESYSEXITS_H