[OpenAFS-devel] lwp PRE_Block on linux

Pavel Semerad semerad@ss1000.ms.mff.cuni.cz
Thu, 12 Apr 2001 18:25:06 +0200 (CEST)


Hi,
there is a mitmatch using variable PRE_Block on linux. In one file it is
int and in another char. This works for little endian systems, but not for
big endian (such as sparc). Here is patch:


--- lwp/lwp.c 14:01:39  1.1.1.5
+++ lwp/lwp.c 16:08:33  1.7
@@ -39,7 +39,7 @@ extern char* getenv();
 extern void *malloc(int size);
 extern void *realloc(void *ptr, int size);
 #endif
-#if defined(AFS_OSF_ENV) || defined(AFS_LINUX20_ENV) || defined(AFS_S390_LINUX20_ENV)
+#if defined(AFS_OSF_ENV) || defined(AFS_LINUX20_ENV)
 extern int PRE_Block;  /* from preempt.c */
 #else
 extern char PRE_Block; /* from preempt.c */
--- lwp/process.c 14:01:40      1.1.1.5
+++ lwp/process.c 16:08:33      1.8
@@ -13,7 +13,7 @@
 #include <assert.h>
 #include "lwp.h"
 
-#if defined(AFS_OSF_ENV) || defined(AFS_S390_LINUX20_ENV)
+#if defined(AFS_OSF_ENV) || defined(AFS_LINUX20_ENV)
 extern int PRE_Block;              /* used in lwp.c and process.s */
 #else
 extern char PRE_Block;             /* used in lwp.c and process.s */



Pavel Semerad