summaryrefslogtreecommitdiff
path: root/lib/system.h
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@redhat.com>2013-11-11 21:00:54 +0100
committerNikos Mavrogiannopoulos <nmav@redhat.com>2013-11-11 21:12:35 +0100
commit0330554cbfc4adbeaba9f53ee5ee231691009f6c (patch)
tree72ab40cf3bf6e627cafd48146ee5d1f6cc2304f5 /lib/system.h
parente6a2c5957dd67f95eeaa737b96845ba53c472951 (diff)
downloadgnutls-0330554cbfc4adbeaba9f53ee5ee231691009f6c.tar.gz
define GNUTLS_PATH_MAX globally.
Diffstat (limited to 'lib/system.h')
-rw-r--r--lib/system.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/system.h b/lib/system.h
index b2a73e7677..9523b339e2 100644
--- a/lib/system.h
+++ b/lib/system.h
@@ -33,6 +33,12 @@
#include <windows.h> /* for Sleep */
#endif
+#ifdef _POSIX_PATH_MAX
+# define GNUTLS_PATH_MAX _POSIX_PATH_MAX
+#else
+# define GNUTLS_PATH_MAX 256
+#endif
+
int system_errno(gnutls_transport_ptr_t);
int system_recv_timeout(gnutls_transport_ptr_t ptr, unsigned int ms);