aboutsummaryrefslogtreecommitdiff
path: root/src/platform
diff options
context:
space:
mode:
authorGarrett D'Amore <garrett@damore.org>2025-10-05 08:25:50 -0700
committerGarrett D'Amore <garrett@damore.org>2025-10-05 08:38:19 -0700
commitd1bd64c8251171ac8e1d4e71ab8726c2a64fd55a (patch)
tree579cc387639a9be8e0b162aeaa0cd55d9c87f725 /src/platform
parent883e0289cdab5a81312b0593b098f70114b61f88 (diff)
downloadnng-d1bd64c8251171ac8e1d4e71ab8726c2a64fd55a.tar.gz
nng-d1bd64c8251171ac8e1d4e71ab8726c2a64fd55a.tar.bz2
nng-d1bd64c8251171ac8e1d4e71ab8726c2a64fd55a.zip
Various header file fixes... also fix compilation errors when HTTP is disabled.v2.0.0-alpha.6
Also, some instances nni_aio are changed to nng_aio. We think we want to harmonize some of these types going forward as it will reduce the need to include headers hopefully letting us get away with just "defs.h" in more places.
Diffstat (limited to 'src/platform')
-rw-r--r--src/platform/posix/posix_debug.c2
-rw-r--r--src/platform/posix/posix_impl.h7
2 files changed, 3 insertions, 6 deletions
diff --git a/src/platform/posix/posix_debug.c b/src/platform/posix/posix_debug.c
index 3c0a6604..974c3d02 100644
--- a/src/platform/posix/posix_debug.c
+++ b/src/platform/posix/posix_debug.c
@@ -7,7 +7,7 @@
// found online at https://opensource.org/licenses/MIT.
//
-#include "core/nng_impl.h"
+#include "../../core/nng_impl.h"
#ifdef NNG_PLATFORM_POSIX
diff --git a/src/platform/posix/posix_impl.h b/src/platform/posix/posix_impl.h
index 2229f17c..316cc3e6 100644
--- a/src/platform/posix/posix_impl.h
+++ b/src/platform/posix/posix_impl.h
@@ -32,7 +32,7 @@
#define NNG_PLATFORM_POSIX_SOCKADDR
#define NNG_PLATFORM_POSIX_UDP
-#include "core/defs.h"
+#include "../../core/defs.h"
#include "posix_config.h"
#endif
@@ -60,10 +60,7 @@ struct nni_plat_mtx {
pthread_mutex_t mtx;
};
-#define NNI_MTX_INITIALIZER \
- { \
- PTHREAD_MUTEX_INITIALIZER \
- }
+#define NNI_MTX_INITIALIZER { PTHREAD_MUTEX_INITIALIZER }
// No static form of CV initialization because of the need to use
// attributes to set the clock type.