]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
STABLE12-rx-xdr-rename-userland-symbols-also-on-amd64-linux-20030627
authorDerrick Brashear <shadow@dementia.org>
Fri, 27 Jun 2003 15:09:58 +0000 (15:09 +0000)
committerDerrick Brashear <shadow@dementia.org>
Fri, 27 Jun 2003 15:09:58 +0000 (15:09 +0000)
pull up fix for amd64 xdr problem

(cherry picked from commit def59db27bb8a6b2b123547b30054d8ff380366e)

src/rx/xdr.h

index 5f899ac4afafd5806c880b9710dd0579cc46d36f..f56fd6d600f5d00f1079b9da072c891d9f24e5e4 100644 (file)
 #define mem_free(ptr, bsize)   free(ptr)
 #endif
 
-#ifdef KERNEL
-void *afs_osi_Alloc();
-#define        osi_alloc               afs_osi_Alloc
-#define        osi_free                afs_osi_Free
-
-#ifndef UKERNEL
+#if defined(AFS_AMD64_LINUX24_ENV) || (defined(KERNEL) && !defined(UKERNEL))
 #define xdr_void afs_xdr_void
 #define xdr_int afs_xdr_int
 #define xdr_u_int afs_xdr_u_int
@@ -92,6 +87,17 @@ void *afs_osi_Alloc();
 #define xdr_int64 afs_xdr_int64
 #define xdr_uint64 afs_xdr_uint64
 #endif
+
+#ifdef KERNEL
+void *afs_osi_Alloc();
+#define        osi_alloc               afs_osi_Alloc
+#define        osi_free                afs_osi_Free
+
+/* keep here for now, 64 bit issues */
+extern void *afs_osi_Alloc(size_t x);
+extern void *afs_osi_Alloc_NoSleep(size_t x);
+extern void afs_osi_Free(void *x, size_t asize);
+
 #endif
 #ifndef major          /* ouch! */
 #include <sys/types.h>