summaryrefslogtreecommitdiffstats
path: root/mDNSResponder/mDNSPosix/mDNSPosix.h
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2014-01-23 15:28:23 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2014-01-30 16:23:05 +0100
commit0543f16e4caa9d146bef31f0b6b86dbc1f3db6c6 (patch)
treee38aa2d39eba65a877404820ddfac00a8b533403 /mDNSResponder/mDNSPosix/mDNSPosix.h
parentmDNS: mDNSShared/mDNSDebug.c (diff)
downloadrtems-libbsd-0543f16e4caa9d146bef31f0b6b86dbc1f3db6c6.tar.bz2
mDNS: Use mutex for mDNSPosix platform
Diffstat (limited to '')
-rwxr-xr-xmDNSResponder/mDNSPosix/mDNSPosix.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/mDNSResponder/mDNSPosix/mDNSPosix.h b/mDNSResponder/mDNSPosix/mDNSPosix.h
index f9fcea78..f6dab9e9 100755
--- a/mDNSResponder/mDNSPosix/mDNSPosix.h
+++ b/mDNSResponder/mDNSPosix/mDNSPosix.h
@@ -20,6 +20,9 @@
#include <signal.h>
#include <sys/time.h>
+#ifdef __rtems__
+#include <pthread.h>
+#endif /* __rtems__ */
#ifdef __cplusplus
extern "C" {
@@ -54,6 +57,9 @@ struct mDNS_PlatformSupport_struct
#if HAVE_IPV6
int unicastSocket6;
#endif
+#ifdef __rtems__
+ pthread_mutex_t mutex;
+#endif /* __rtems__ */
};
#define uDNS_SERVERS_FILE "/etc/resolv.conf"