comparison libpurple/internal.h @ 18148:f160b6e84d0c

Use dynamicly allocated string manipulation here as well to avoid a MAXPATHLEN. This is untested, as I don't use Zephyr. This also leaks a string at libpurple uninit. If that's bad, I can add a callback to this file and call it from the prpl's unload callback. References #1635
author Richard Laager <rlaager@wiktel.com>
date Sun, 17 Jun 2007 03:00:15 +0000
parents a00cf76108c6
children 7df46d8bf114 db286cc82bd1
comparison
equal deleted inserted replaced
18147:5653692dcf79 18148:f160b6e84d0c
109 # include <netdb.h> 109 # include <netdb.h>
110 # include <signal.h> 110 # include <signal.h>
111 # include <unistd.h> 111 # include <unistd.h>
112 #endif 112 #endif
113 113
114 #ifndef MAXPATHLEN
115 # define MAXPATHLEN 1024
116 #endif
117
118 #ifndef HOST_NAME_MAX 114 #ifndef HOST_NAME_MAX
119 # define HOST_NAME_MAX 255 115 # define HOST_NAME_MAX 255
120 #endif 116 #endif
121
122 #define PATHSIZE 1024
123 117
124 #include <glib.h> 118 #include <glib.h>
125 #if !GLIB_CHECK_VERSION(2,4,0) 119 #if !GLIB_CHECK_VERSION(2,4,0)
126 # define G_MAXUINT32 ((guint32) 0xffffffff) 120 # define G_MAXUINT32 ((guint32) 0xffffffff)
127 #endif 121 #endif