summaryrefslogtreecommitdiff
path: root/src/assuan.h.in
diff options
context:
space:
mode:
authorNIIBE Yutaka <gniibe@fsij.org>2023-05-11 19:09:45 +0900
committerNIIBE Yutaka <gniibe@fsij.org>2023-05-11 19:09:45 +0900
commit9ecbd8e60c6904e72f7a22963dffb0016eab69b4 (patch)
tree31313699d90986129964e3c0f2f05d37f4887f54 /src/assuan.h.in
parent1eb66efbdd7b0fd09fadbdd5d5650e6c2eae032e (diff)
downloadlibassuan-9ecbd8e60c6904e72f7a22963dffb0016eab69b4.tar.gz
Deprecate ASSUAN_SYSTEM_NPTH.
* src/assuan.h.in: Introduce new configuration with ASSUAN_REALLY_REQUIRE_OLD_WAY_OF_SYSTEM_NPTH. -- Existing use cases just works with ASSUAN_SYSTEM_NPTH=NULL. Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
Diffstat (limited to 'src/assuan.h.in')
-rw-r--r--src/assuan.h.in5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/assuan.h.in b/src/assuan.h.in
index a101344..2f89f10 100644
--- a/src/assuan.h.in
+++ b/src/assuan.h.in
@@ -551,6 +551,7 @@ int __assuan_sendmsg (assuan_context_t ctx, assuan_fd_t fd,
pid_t __assuan_waitpid (assuan_context_t ctx, pid_t pid,
int nowait, int *status, int options);
+#ifdef ASSUAN_REALLY_REQUIRE_OLD_WAY_OF_SYSTEM_NPTH
/* Standard system hooks for nPth. */
#define ASSUAN_SYSTEM_NPTH_IMPL \
static void _assuan_npth_usleep (assuan_context_t ctx, unsigned int usec) \
@@ -601,6 +602,10 @@ pid_t __assuan_waitpid (assuan_context_t ctx, pid_t pid,
extern struct assuan_system_hooks _assuan_system_npth;
#define ASSUAN_SYSTEM_NPTH &_assuan_system_npth
+#else
+#define ASSUAN_SYSTEM_NPTH_IMPL /**/
+#define ASSUAN_SYSTEM_NPTH NULL
+#endif
#ifdef __cplusplus
}