aboutsummaryrefslogtreecommitdiff
path: root/src/include/platform.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/platform.h')
-rw-r--r--src/include/platform.h34
1 files changed, 27 insertions, 7 deletions
diff --git a/src/include/platform.h b/src/include/platform.h
index e641b38eb..e44f9f51a 100644
--- a/src/include/platform.h
+++ b/src/include/platform.h
@@ -22,7 +22,7 @@
22 * @author Nils Durner 22 * @author Nils Durner
23 * @author Christian Grothoff 23 * @author Christian Grothoff
24 * 24 *
25 * @file 25 * @file gnunet/src/include/platform.h
26 * Platform specific includes and defines. 26 * Platform specific includes and defines.
27 * 27 *
28 * This file should never be included by installed 28 * This file should never be included by installed
@@ -170,18 +170,12 @@
170#include "compat.h" 170#include "compat.h"
171 171
172#include <locale.h> 172#include <locale.h>
173#ifndef FRAMEWORK_BUILD
174#include "gettext.h" 173#include "gettext.h"
175/** 174/**
176 * GNU gettext support macro. 175 * GNU gettext support macro.
177 */ 176 */
178#define _(String) dgettext (PACKAGE, String) 177#define _(String) dgettext (PACKAGE, String)
179#define LIBEXTRACTOR_GETTEXT_DOMAIN "libextractor" 178#define LIBEXTRACTOR_GETTEXT_DOMAIN "libextractor"
180#else
181#include "libintlemu.h"
182#define _(String) dgettext ("org.gnunet.gnunet", String)
183#define LIBEXTRACTOR_GETTEXT_DOMAIN "org.gnunet.libextractor"
184#endif
185 179
186#include <sys/mman.h> 180#include <sys/mman.h>
187 181
@@ -252,6 +246,32 @@ atoll (const char *nptr);
252#define GNUNET_THREAD_LOCAL 246#define GNUNET_THREAD_LOCAL
253#endif 247#endif
254 248
249
250/* LSB-style exit status codes */
251#ifndef EXIT_INVALIDARGUMENT
252#define EXIT_INVALIDARGUMENT 2
253#endif
254
255#ifndef EXIT_NOTIMPLEMENTED
256#define EXIT_NOTIMPLEMENTED 3
257#endif
258
259#ifndef EXIT_NOPERMISSION
260#define EXIT_NOPERMISSION 4
261#endif
262
263#ifndef EXIT_NOTINSTALLED
264#define EXIT_NOTINSTALLED 5
265#endif
266
267#ifndef EXIT_NOTCONFIGURED
268#define EXIT_NOTCONFIGURED 6
269#endif
270
271#ifndef EXIT_NOTRUNNING
272#define EXIT_NOTRUNNING 7
273#endif
274
255/** 275/**
256 * clang et al do not have such an attribute 276 * clang et al do not have such an attribute
257 */ 277 */