summaryrefslogtreecommitdiff
path: root/pr/include/prnetdb.h
diff options
context:
space:
mode:
Diffstat (limited to 'pr/include/prnetdb.h')
-rw-r--r--pr/include/prnetdb.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/pr/include/prnetdb.h b/pr/include/prnetdb.h
index 7a7ea863..8506d21c 100644
--- a/pr/include/prnetdb.h
+++ b/pr/include/prnetdb.h
@@ -49,8 +49,13 @@ typedef struct PRHostEnt {
/* A safe size to use that will mostly work... */
#if (defined(AIX) && defined(_THREAD_SAFE))
#define PR_NETDB_BUF_SIZE sizeof(struct protoent_data)
+#define PR_MIN_NETDB_BUF_SIZE PR_NETDB_BUF_SIZE
#else
-#define PR_NETDB_BUF_SIZE 1024
+/* PR_NETDB_BUF_SIZE is the recommended buffer size */
+#define PR_NETDB_BUF_SIZE 2048
+/* PR_MIN_NETDB_BUF_SIZE is the smallest buffer size that the API
+ * accepts (for backward compatibility). */
+#define PR_MIN_NETDB_BUF_SIZE 1024
#endif
/***********************************************************************