[OpenAFS-devel] Re: [OpenAFS] AFS Client on IA 64
chas williams
chas@locutus.cmf.nrl.navy.mil
Wed, 23 Apr 2003 14:22:30 -0400
here's a few more patches that should eliminate the rest of the
"warning: assignment makes pointer from integer without a cast"
errors on the ia64 port (i reincluded the fs.c patch for consistency):
--- src/venus/up.c.000 Wed Apr 23 14:06:36 2003
+++ src/venus/up.c Wed Apr 23 14:15:55 2003
@@ -44,6 +44,13 @@
#include <netinet/in.h>
#endif
#include <afs/venus.h>
+#ifdef HAVE_STRING_H
+#include <string.h>
+#else
+#ifdef HAVE_STRINGS_H
+#include <strings.h>
+#endif
+#endif
/* ************************************************************* */
--- src/uss/lex.c.000 Wed Apr 23 14:08:08 2003
+++ src/uss/lex.c Wed Apr 23 14:13:34 2003
@@ -10,6 +10,13 @@
#include <afsconfig.h>
#include <afs/param.h>
+#ifdef HAVE_STRING_H
+#include <string.h>
+#else
+#ifdef HAVE_STRINGS_H
+#include <strings.h>
+#endif
+#endif
RCSID("$Header: /cvs/openafs/src/uss/lex.c,v 1.5 2001/08/08 00:04:15 shadow Exp $");
--- src/uss/uss_procs.c.000 Wed Apr 23 14:08:51 2003
+++ src/uss/uss_procs.c Wed Apr 23 14:15:44 2003
@@ -32,6 +32,13 @@
#include <fcntl.h>
#endif
#include <afs/kautils.h> /*MAXKTCREALMLEN*/
+#ifdef HAVE_STRING_H
+#include <string.h>
+#else
+#ifdef HAVE_STRINGS_H
+#include <strings.h>
+#endif
+#endif
#undef USS_PROCS_DB
--- src/vlserver/cnvldb.c.000 Wed Apr 23 14:09:24 2003
+++ src/vlserver/cnvldb.c Wed Apr 23 14:15:34 2003
@@ -25,7 +25,13 @@
#include <afs/fileutil.h>
#include "vlserver.h"
+#ifdef HAVE_STRING_H
+#include <string.h>
+#else
+#ifdef HAVE_STRINGS_H
#include <strings.h>
+#endif
+#endif
#define MAXSIZE 2048 /* most I'll get back from PIOCTL */
#define BADSERVERID 255 /* XXX */
--- src/budb/procs.c.000 Wed Apr 23 14:10:23 2003
+++ src/budb/procs.c Wed Apr 23 14:10:37 2003
@@ -26,8 +26,14 @@
#include <sys/param.h>
#include <sys/time.h>
#include <sys/resource.h>
+#ifdef HAVE_STRING_H
+#include <string.h>
+#else
+#ifdef HAVE_STRINGS_H
#include <strings.h>
#endif
+#endif
+#endif
#include <sys/types.h>
#include <afs/stds.h>
#include <afs/bubasics.h>
--- src/venus/fs.c.000 Tue Apr 22 11:09:29 2003
+++ src/venus/fs.c Tue Apr 22 11:09:40 2003
@@ -43,6 +43,13 @@
#include <strings.h>
#include <afs/afsutil.h>
#include <stdlib.h>
+#ifdef HAVE_STRING_H
+#include <string.h>
+#else
+#ifdef HAVE_STRINGS_H
+#include <strings.h>
+#endif
+#endif
#include <assert.h>
#include <afs/ptclient.h>