[OpenAFS-devel] ia64 linux port, strings.h, string.h?

Neulinger, Nathan nneul@umr.edu
Mon, 11 Jun 2001 08:13:49 -0500


If you've been following the patches, this is being done gradually all over,
please add:

#include <afsconfig.h>

right after #include <afs/param.h>

(but only in non-installed header/source files) Be careful not to make this
change to any file that gets installed.

and then add

#ifdef HAVE_STRING_H
#include <string.h>
#endif
#ifdef HAVE_STRINGS_H
#include <strings.h>
#endif

see some of the other areas in the code that have had this change made.

-- Nathan

> -----Original Message-----
> From: chas williams [mailto:chas@cmf.nrl.navy.mil]
> Sent: Monday, June 11, 2001 8:10 AM
> To: openafs-devel@openafs.org
> Subject: [OpenAFS-devel] ia64 linux port, strings.h, string.h?
> 
> 
> ok, we finally got around to getting our ia64's powered up 
> and running.
> i just started looking at the afs port to this beast.  the 
> first problem
> is basically missing prototypes, which for a 64-bit userland 
> is strangely
> important.  as an example:
> 
> klog.c: In function `getpipepass':
> klog.c:159: warning: implicit declaration of function `bzero'
> klog.c: In function `CommandProc':
> klog.c:202: warning: implicit declaration of function `strlen'
> klog.c:238: warning: implicit declaration of function `strcpy'
> 
> i would guess that about 70-80% of the afs sources needs 
> either string.h
> or strings.h added.  i see that some of the source files have 
> strings.h
> (ifndef'ed AFS_NT40_ENV).  i have been adding string.h since this is 
> posix and exists on the windows platform.  should all strings.h be
> converted to string.h?  is there any platform that doesnt 
> have string.h?
> is there a better way?
> _______________________________________________
> OpenAFS-devel mailing list
> OpenAFS-devel@openafs.org
> https://lists.openafs.org/mailman/listinfo/openafs-devel
>