From: fabrizio.manfredi@gmail.com Date: Wed, 27 May 2009 01:13:38 +0000 (+0000) Subject: java-errno-header-20090526 X-Git-Tag: openafs-devel-1_5_61~286 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=3b2a1ac2b1d4212363527a6edc6dd2aa76a3f960;p=packages%2Fo%2Fopenafs.git java-errno-header-20090526 LICENSE IPL10 FIXES 124810 use the errno header instead of assuming extern int --- diff --git a/src/JAVA/libjafs/ACL.c b/src/JAVA/libjafs/ACL.c index da9d60307..20f055756 100644 --- a/src/JAVA/libjafs/ACL.c +++ b/src/JAVA/libjafs/ACL.c @@ -21,6 +21,7 @@ #include #include +#include #include "Internal.h" #include "org_openafs_jafs_ACL.h" @@ -54,7 +55,12 @@ static char space[MAXSIZE]; #define ACL_LEN 1024 -extern int errno; +#ifndef ERROR_H +#define ERROR_H +#endif + +extern int error_intr; +extern int error_nomem; /** * Returns a formatted string representing the ACL for the specified path. diff --git a/src/JAVA/libjafs/FileInputStream.c b/src/JAVA/libjafs/FileInputStream.c index 95b9327dd..180992f76 100644 --- a/src/JAVA/libjafs/FileInputStream.c +++ b/src/JAVA/libjafs/FileInputStream.c @@ -21,6 +21,7 @@ #include "Internal.h" #include "org_openafs_jafs_FileInputStream.h" +#include #include @@ -28,8 +29,6 @@ #include "dmalloc.h" #endif -extern int errno; - /** * Be carefull with the memory management: * diff --git a/src/JAVA/libjafs/Internal.c b/src/JAVA/libjafs/Internal.c index 5d588d857..d44ab3204 100644 --- a/src/JAVA/libjafs/Internal.c +++ b/src/JAVA/libjafs/Internal.c @@ -20,13 +20,12 @@ */ #include "Internal.h" +#include #ifdef DMALLOC #include "dmalloc.h" #endif -extern int errno; - #ifndef LIBJUAFS // user class and fields // jclass userCls = 0;