2005-04-28 Ken Raeburn <raeburn@mit.edu>
+ * k5-int.h: Include fcntl.h only if HAVE_FCNTL_H is defined.
+ (krb5int_zap_data): For PalmOS without gcc, call memset but
+ without the volatile cast.
+
* port-sockets.h: On PalmOS, include autoconf.h and netdb.h, and
define socklen_t.
* socket-utils.h: Include k5-platform.h.
friends */
#endif
+#ifdef HAVE_FCNTL_H
#include <fcntl.h>
+#endif
#endif /* KRB5_SYSINCL__ */
/*
/* Make this a function eventually? */
#ifdef _WIN32
# define krb5int_zap_data(ptr, len) SecureZeroMemory(ptr, len)
+#elif defined(__palmos__) && !defined(__GNUC__)
+/* CodeWarrior 8.3 complains about passing a pointer to volatile in to
+ memset. On the other hand, we probably want it for gcc. */
+# define krb5int_zap_data(ptr, len) memset(ptr, 0, len)
#else
# define krb5int_zap_data(ptr, len) memset((volatile void *)ptr, 0, len)
# if defined(__GNUC__) && defined(__GLIBC__)