aboutsummaryrefslogtreecommitdiff
path: root/src/util/proc_compat.c
diff options
context:
space:
mode:
authorMartin Schanzenbach <schanzen@gnunet.org>2022-12-01 18:32:23 +0900
committerMartin Schanzenbach <schanzen@gnunet.org>2022-12-01 18:32:23 +0900
commitde5949640a54fde50e9934fe8693159ae05f1541 (patch)
tree285e0400ec393b4b814449ff0c2a01300bda9a11 /src/util/proc_compat.c
parenta25fa8cf399e0257a71a7c854fe9055ed0c58ab6 (diff)
downloadgnunet-de5949640a54fde50e9934fe8693159ae05f1541.tar.gz
gnunet-de5949640a54fde50e9934fe8693159ae05f1541.zip
BUILD: Improve platform-specific includes
This change allows third party programs to use gnunet either with the platform header from the sources used to build to gnunet, or use their own platform header by defining GNUNET_CUSTOM_PLATFORM_H which will be included in its stead. This also means that programs no longer must include "platform.h" (or similar) manually. The change (should be) backwards compatible to some degree. Fixes #4615
Diffstat (limited to 'src/util/proc_compat.c')
-rw-r--r--src/util/proc_compat.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/util/proc_compat.c b/src/util/proc_compat.c
index 6e852cb35..e86ec70ad 100644
--- a/src/util/proc_compat.c
+++ b/src/util/proc_compat.c
@@ -17,7 +17,7 @@
17 17
18 SPDX-License-Identifier: AGPL3.0-or-later 18 SPDX-License-Identifier: AGPL3.0-or-later
19 */ 19 */
20#include "platform.h" 20
21 21
22/** 22/**
23 * @author Martin Schanzenbach 23 * @author Martin Schanzenbach
@@ -26,6 +26,7 @@
26 * Definitions for macOS and Win32 26 * Definitions for macOS and Win32
27 */ 27 */
28 28
29#include "gnunet_platform.h"
29 30
30/** 31/**
31 * memrchr as defined in glibc 32 * memrchr as defined in glibc