[PATCH] pre7 compile fix for alpha

From: Ivan Kokshaysky (ink@jurassic.park.msu.ru)
Date: Thu May 04 2000 - 08:56:33 EST


pre7-1 changes in include/linux/string.h break alpha.
This patch fixes that.

Ivan.

--- 2.3.99pre7-4/include/asm-alpha/string.h Fri Aug 6 21:41:47 1999
+++ linux/include/asm-alpha/string.h Thu May 4 13:54:10 2000
@@ -11,7 +11,10 @@
  */
 
 #define __HAVE_ARCH_MEMCPY
+extern void * memcpy(void *, const void *, size_t);
 #define __HAVE_ARCH_MEMMOVE
+extern void * memmove(void *, const void *, size_t);
+
 /* For backward compatibility with modules. Unused otherwise. */
 extern void * __memcpy(void *, const void *, size_t);
 
@@ -22,6 +25,7 @@
 #define __HAVE_ARCH_MEMSET
 extern void * __constant_c_memset(void *, unsigned long, size_t);
 extern void * __memset(void *, int, size_t);
+extern void * memset(void *, int, size_t);
 
 #if __GNUC__ > 2 || __GNUC_MINOR__ >= 91
 #define memset(s, c, n) \
@@ -38,13 +42,21 @@
 #endif
 
 #define __HAVE_ARCH_STRCPY
+extern char * strcpy(char *,const char *);
 #define __HAVE_ARCH_STRNCPY
+extern char * strncpy(char *, const char *, size_t);
 #define __HAVE_ARCH_STRCAT
+extern char * strcat(char *, const char *);
 #define __HAVE_ARCH_STRNCAT
+extern char * strncat(char *, const char *, size_t);
 #define __HAVE_ARCH_STRCHR
+extern char * strchr(const char *,int);
 #define __HAVE_ARCH_STRRCHR
+extern char * strrchr(const char *,int);
 #define __HAVE_ARCH_STRLEN
+extern size_t strlen(const char *);
 #define __HAVE_ARCH_MEMCHR
+extern void * memchr(const void *, int, size_t);
 
 /* The following routine is like memset except that it writes 16-bit
    aligned values. The DEST and COUNT parameters must be even for

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Sun May 07 2000 - 21:00:14 EST