errno problem with v1.28 and glibc 2.3.2
Sam Hartman
hartmans at MIT.EDU
Tue Jun 3 13:23:43 EDT 2003
>>>>> "Axel" == Axel <axel.azerty at netcourrier.com> writes:
Axel> Hello I m trying to usekerberos on a linux 2.4.X kernel,
Axel> with gcc 3.3 and glibc 2.3.2, but compiling fails as
Axel> following :
This is a known problem.
Kerberos 1.3 will address this issue.
You may find the following patch useful as well:
Index: src/appl/bsd/login.c
===================================================================
RCS file: /afs/sipb.mit.edu/project/debian/cvs/krb5/src/appl/bsd/login.c,v
retrieving revision 1.1.1.3
diff -u -r1.1.1.3 login.c
--- src/appl/bsd/login.c 1 Mar 2002 05:00:16 -0000 1.1.1.3
+++ src/appl/bsd/login.c 5 Jan 2003 22:15:01 -0000
@@ -295,7 +295,7 @@
char term[64], *hostname, *username;
-extern int errno;
+
#ifdef KRB4
#define KRB_ENVIRON "KRBTKFILE" /* Ticket file environment variable */
Index: src/appl/gssftp/ftp/glob.c
===================================================================
RCS file: /afs/sipb.mit.edu/project/debian/cvs/krb5/src/appl/gssftp/ftp/glob.c,v
retrieving revision 1.1.1.2
diff -u -r1.1.1.2 glob.c
--- src/appl/gssftp/ftp/glob.c 10 Jan 2002 11:03:43 -0000 1.1.1.2
+++ src/appl/gssftp/ftp/glob.c 5 Jan 2003 22:15:02 -0000
@@ -76,7 +76,6 @@
char **ftpglob();
char *globerr;
char *home;
-extern int errno;
static char *strspl(), *strend();
char **copyblk();
Index: src/appl/gssftp/ftpd/ftpd.c
===================================================================
RCS file: /afs/sipb.mit.edu/project/debian/cvs/krb5/src/appl/gssftp/ftpd/ftpd.c,v
retrieving revision 1.1.1.2
diff -u -r1.1.1.2 ftpd.c
--- src/appl/gssftp/ftpd/ftpd.c 10 Jan 2002 11:03:44 -0000 1.1.1.2
+++ src/appl/gssftp/ftpd/ftpd.c 5 Jan 2003 22:15:02 -0000
@@ -166,7 +166,6 @@
* NOT to be used on this machine.
* Commonly used to disallow uucp.
*/
-extern int errno;
extern char *crypt();
extern char version[];
extern char *home; /* pointer to home directory for glob */
Index: src/kadmin/dbutil/kdb5_destroy.c
===================================================================
RCS file: /afs/sipb.mit.edu/project/debian/cvs/krb5/src/kadmin/dbutil/kdb5_destroy.c,v
retrieving revision 1.1.1.1
diff -u -r1.1.1.1 kdb5_destroy.c
--- src/kadmin/dbutil/kdb5_destroy.c 20 Oct 2000 07:15:19 -0000 1.1.1.1
+++ src/kadmin/dbutil/kdb5_destroy.c 5 Jan 2003 22:15:03 -0000
@@ -34,8 +34,9 @@
#include "com_err.h"
#include <kadm5/admin.h>
#include <kadm5/adb.h>
+#include <errno.h>
+
-extern int errno;
extern int exit_status;
extern krb5_boolean dbactive;
extern kadm5_config_params global_params;
Index: src/kadmin/dbutil/kdb5_stash.c
===================================================================
RCS file: /afs/sipb.mit.edu/project/debian/cvs/krb5/src/kadmin/dbutil/kdb5_stash.c,v
retrieving revision 1.1.1.1
diff -u -r1.1.1.1 kdb5_stash.c
--- src/kadmin/dbutil/kdb5_stash.c 20 Oct 2000 07:15:19 -0000 1.1.1.1
+++ src/kadmin/dbutil/kdb5_stash.c 5 Jan 2003 22:15:03 -0000
@@ -57,8 +57,8 @@
#include "com_err.h"
#include <kadm5/admin.h>
#include <stdio.h>
+#include <errno.h>
-extern int errno;
extern krb5_keyblock master_keyblock;
extern krb5_principal master_princ;
Index: src/kadmin/v4server/acl_files.c
===================================================================
RCS file: /afs/sipb.mit.edu/project/debian/cvs/krb5/src/kadmin/v4server/acl_files.c,v
retrieving revision 1.1.1.2
diff -u -r1.1.1.2 acl_files.c
--- src/kadmin/v4server/acl_files.c 6 Oct 2002 19:46:53 -0000 1.1.1.2
+++ src/kadmin/v4server/acl_files.c 5 Jan 2003 22:15:03 -0000
@@ -22,7 +22,7 @@
#include <sys/types.h>
#include <sys/file.h>
#include <sys/stat.h>
-#include <sys/errno.h>
+#include <errno.h>
#include <ctype.h>
#include <fcntl.h>
#include "krb.h"
@@ -50,7 +50,6 @@
#define COR(a,b) ((a!=NULL)?(a):(b))
-extern int errno;
#ifndef HAVE_STDLIB_H
extern char *malloc(), *calloc();
Index: src/kadmin/v4server/admin_server.c
===================================================================
RCS file: /afs/sipb.mit.edu/project/debian/cvs/krb5/src/kadmin/v4server/admin_server.c,v
retrieving revision 1.1.1.1
diff -u -r1.1.1.1 admin_server.c
--- src/kadmin/v4server/admin_server.c 20 Oct 2000 07:15:19 -0000 1.1.1.1
+++ src/kadmin/v4server/admin_server.c 5 Jan 2003 22:15:03 -0000
@@ -269,7 +269,6 @@
*/
kadm_listen()
{
- extern int errno;
int found;
int admin_fd;
int peer_fd;
Index: src/kdc/kerberos_v4.c
===================================================================
RCS file: /afs/sipb.mit.edu/project/debian/cvs/krb5/src/kdc/kerberos_v4.c,v
retrieving revision 1.1.1.2
diff -u -r1.1.1.2 kerberos_v4.c
--- src/kdc/kerberos_v4.c 6 Oct 2002 19:45:20 -0000 1.1.1.2
+++ src/kdc/kerberos_v4.c 5 Jan 2003 22:15:03 -0000
@@ -66,7 +66,6 @@
#include <krb_db.h>
#include <kdc.h>
-extern int errno;
static int compat_decrypt_key PROTOTYPE((krb5_key_data *, C_Block,
krb5_keyblock *, int));
@@ -143,6 +142,7 @@
*/
#include "com_err.h"
#include "extern.h" /* to pick up master_princ */
+#include <errno.h>
static krb5_error_code retval;
static krb5_data *response;
Index: src/kdc/network.c
===================================================================
RCS file: /afs/sipb.mit.edu/project/debian/cvs/krb5/src/kdc/network.c,v
retrieving revision 1.1.1.3
diff -u -r1.1.1.3 network.c
--- src/kdc/network.c 10 Jan 2002 11:03:59 -0000 1.1.1.3
+++ src/kdc/network.c 5 Jan 2003 22:15:04 -0000
@@ -34,6 +34,7 @@
#include "kdc5_err.h"
#include <sys/ioctl.h>
#include <syslog.h>
+#include <errno.h>
#include <stddef.h>
#include <ctype.h>
@@ -55,7 +56,6 @@
#include <net/if.h>
#endif
-extern int errno;
static int *udp_port_fds = (int *) NULL;
static u_short *udp_port_nums = (u_short *) NULL;
Index: src/lib/des425/verify.c
===================================================================
RCS file: /afs/sipb.mit.edu/project/debian/cvs/krb5/src/lib/des425/verify.c,v
retrieving revision 1.1.1.1
diff -u -r1.1.1.1 verify.c
--- src/lib/des425/verify.c 20 Oct 2000 07:15:19 -0000 1.1.1.1
+++ src/lib/des425/verify.c 5 Jan 2003 22:15:04 -0000
@@ -37,7 +37,6 @@
#include "./des.h"
extern char *errmsg();
-extern int errno;
extern int des_string_to_key();
extern int des_key_sched();
extern int des_ecb_encrypt();
Index: src/lib/kadm5/srv/adb_policy.c
===================================================================
RCS file: /afs/sipb.mit.edu/project/debian/cvs/krb5/src/lib/kadm5/srv/adb_policy.c,v
retrieving revision 1.1.1.1
diff -u -r1.1.1.1 adb_policy.c
--- src/lib/kadm5/srv/adb_policy.c 20 Oct 2000 07:15:19 -0000 1.1.1.1
+++ src/lib/kadm5/srv/adb_policy.c 5 Jan 2003 22:15:04 -0000
@@ -13,8 +13,8 @@
#include "adb.h"
#include <stdlib.h>
#include <string.h>
+#include <errno.h>
-extern int errno;
#define OPENLOCK(db, mode) \
{ \
Index: src/lib/kadm5/srv/server_dict.c
===================================================================
RCS file: /afs/sipb.mit.edu/project/debian/cvs/krb5/src/lib/kadm5/srv/server_dict.c,v
retrieving revision 1.1.1.1
diff -u -r1.1.1.1 server_dict.c
--- src/lib/kadm5/srv/server_dict.c 20 Oct 2000 07:15:19 -0000 1.1.1.1
+++ src/lib/kadm5/srv/server_dict.c 5 Jan 2003 22:15:04 -0000
@@ -13,6 +13,7 @@
#include <fcntl.h>
#include <sys/stat.h>
#include <unistd.h>
+#include <errno.h>
#include <kadm5/admin.h>
#include <stdlib.h>
#include <stdio.h>
@@ -24,7 +25,6 @@
static char **word_list = NULL; /* list of word pointers */
static char *word_block = NULL; /* actual word data */
static int word_count = 0; /* number of words */
-extern int errno;
/*
* Function: word_compare
Index: src/lib/krb4/dest_tkt.c
===================================================================
RCS file: /afs/sipb.mit.edu/project/debian/cvs/krb5/src/lib/krb4/dest_tkt.c,v
retrieving revision 1.1.1.2
diff -u -r1.1.1.2 dest_tkt.c
--- src/lib/krb4/dest_tkt.c 2 Mar 2001 10:31:59 -0000 1.1.1.2
+++ src/lib/krb4/dest_tkt.c 5 Jan 2003 22:15:05 -0000
@@ -69,7 +69,6 @@
{
char *file = TKT_FILE;
int i,fd;
- extern int errno;
int ret;
struct stat statpre, statpost;
char buf[BUFSIZ];
Index: src/lib/krb4/netread.c
===================================================================
RCS file: /afs/sipb.mit.edu/project/debian/cvs/krb5/src/lib/krb4/netread.c,v
retrieving revision 1.1.1.1
diff -u -r1.1.1.1 netread.c
--- src/lib/krb4/netread.c 20 Oct 2000 07:15:19 -0000 1.1.1.1
+++ src/lib/krb4/netread.c 5 Jan 2003 22:15:05 -0000
@@ -11,9 +11,6 @@
#include <errno.h>
#define DEFINE_SOCKADDR
#include "krb.h"
-#ifndef _WINDOWS
-extern int errno;
-#endif
/*
* krb_net_read() reads from the file descriptor "fd" to the buffer
Index: src/lib/krb4/netwrite.c
===================================================================
RCS file: /afs/sipb.mit.edu/project/debian/cvs/krb5/src/lib/krb4/netwrite.c,v
retrieving revision 1.1.1.1
diff -u -r1.1.1.1 netwrite.c
--- src/lib/krb4/netwrite.c 20 Oct 2000 07:15:19 -0000 1.1.1.1
+++ src/lib/krb4/netwrite.c 5 Jan 2003 22:15:05 -0000
@@ -11,9 +11,6 @@
#include <errno.h>
#define DEFINE_SOCKADDR
#include "krb.h"
-#ifndef _WINDOWS
-extern int errno;
-#endif
/*
* krb_net_write() writes "len" bytes from "buf" to the file
Index: src/lib/krb4/recvauth.c
===================================================================
RCS file: /afs/sipb.mit.edu/project/debian/cvs/krb5/src/lib/krb4/recvauth.c,v
retrieving revision 1.1.1.1
diff -u -r1.1.1.1 recvauth.c
--- src/lib/krb4/recvauth.c 20 Oct 2000 07:15:19 -0000 1.1.1.1
+++ src/lib/krb4/recvauth.c 5 Jan 2003 22:15:05 -0000
@@ -25,9 +25,6 @@
* be sure to support old versions of krb_sendauth!
*/
-#ifndef _WINDOWS
-extern int errno;
-#endif
/*
* krb_recvauth() reads (and optionally responds to) a message sent
Index: src/lib/krb4/tf_util.c
===================================================================
RCS file: /afs/sipb.mit.edu/project/debian/cvs/krb5/src/lib/krb4/tf_util.c,v
retrieving revision 1.1.1.2
diff -u -r1.1.1.2 tf_util.c
--- src/lib/krb4/tf_util.c 2 Mar 2001 10:32:08 -0000 1.1.1.2
+++ src/lib/krb4/tf_util.c 5 Jan 2003 22:15:05 -0000
@@ -46,7 +46,6 @@
#define TF_LCK_RETRY ((unsigned)2) /* seconds to sleep before
* retry if ticket file is
* locked */
-extern int errno;
extern int krb_debug;
void tf_close();
Index: src/lib/krb5/os/c_ustime.c
===================================================================
RCS file: /afs/sipb.mit.edu/project/debian/cvs/krb5/src/lib/krb5/os/c_ustime.c,v
retrieving revision 1.1.1.3
diff -u -r1.1.1.3 c_ustime.c
--- src/lib/krb5/os/c_ustime.c 10 Jan 2002 11:05:37 -0000 1.1.1.3
+++ src/lib/krb5/os/c_ustime.c 5 Jan 2003 22:15:05 -0000
@@ -29,6 +29,7 @@
#define NEED_SOCKETS
#include "k5-int.h"
+#include <errno.h>
#ifdef macintosh
@@ -325,7 +326,7 @@
/* We're a Unix machine -- do Unix time things. */
-extern int errno;
+
static struct timeval last_tv = {0, 0};
Index: src/lib/krb5/os/localaddr.c
===================================================================
RCS file: /afs/sipb.mit.edu/project/debian/cvs/krb5/src/lib/krb5/os/localaddr.c,v
retrieving revision 1.1.1.3
diff -u -r1.1.1.3 localaddr.c
--- src/lib/krb5/os/localaddr.c 10 Jan 2002 11:05:37 -0000 1.1.1.3
+++ src/lib/krb5/os/localaddr.c 5 Jan 2003 22:15:05 -0000
@@ -77,7 +77,6 @@
* Add more address families here.
*/
-extern int errno;
/*
* Return all the protocol addresses of this host.
Index: src/lib/krb5/posix/syslog.c
===================================================================
RCS file: /afs/sipb.mit.edu/project/debian/cvs/krb5/src/lib/krb5/posix/syslog.c,v
retrieving revision 1.1.1.1
diff -u -r1.1.1.1 syslog.c
--- src/lib/krb5/posix/syslog.c 20 Oct 2000 07:15:19 -0000 1.1.1.1
+++ src/lib/krb5/posix/syslog.c 5 Jan 2003 22:15:05 -0000
@@ -41,6 +41,7 @@
#define const
#include <varargs.h>
#endif
+#include <errno.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <sys/file.h>
@@ -89,7 +90,6 @@
const register char *fmt;
va_list ap;
{
- extern int errno;
register int cnt;
register char *p;
time_t now, time();
Index: src/lib/rpc/clnt_udp.c
===================================================================
RCS file: /afs/sipb.mit.edu/project/debian/cvs/krb5/src/lib/rpc/clnt_udp.c,v
retrieving revision 1.1.1.1
diff -u -r1.1.1.1 clnt_udp.c
--- src/lib/rpc/clnt_udp.c 20 Oct 2000 07:15:19 -0000 1.1.1.1
+++ src/lib/rpc/clnt_udp.c 5 Jan 2003 22:15:05 -0000
@@ -47,8 +47,8 @@
#include <netdb.h>
#include <errno.h>
#include <gssrpc/pmap_clnt.h>
+#include <errno.h>
-extern int errno;
/*
* UDP bases client side rpc operations
Index: src/lib/rpc/pmap_getmaps.c
===================================================================
RCS file: /afs/sipb.mit.edu/project/debian/cvs/krb5/src/lib/rpc/pmap_getmaps.c,v
retrieving revision 1.1.1.1
diff -u -r1.1.1.1 pmap_getmaps.c
--- src/lib/rpc/pmap_getmaps.c 20 Oct 2000 07:15:19 -0000 1.1.1.1
+++ src/lib/rpc/pmap_getmaps.c 5 Jan 2003 22:15:05 -0000
@@ -55,7 +55,6 @@
#define NAMELEN 255
#define MAX_BROADCAST_SIZE 1400
-extern int errno;
/*
* Get a copy of the current port maps.
Index: src/lib/rpc/pmap_rmt.c
===================================================================
RCS file: /afs/sipb.mit.edu/project/debian/cvs/krb5/src/lib/rpc/pmap_rmt.c,v
retrieving revision 1.1.1.1
diff -u -r1.1.1.1 pmap_rmt.c
--- src/lib/rpc/pmap_rmt.c 20 Oct 2000 07:15:19 -0000 1.1.1.1
+++ src/lib/rpc/pmap_rmt.c 5 Jan 2003 22:15:05 -0000
@@ -58,7 +58,6 @@
#include <arpa/inet.h>
#define MAX_BROADCAST_SIZE 1400
-extern int errno;
static struct timeval timeout = { 3, 0 };
Index: src/lib/rpc/svc.c
===================================================================
RCS file: /afs/sipb.mit.edu/project/debian/cvs/krb5/src/lib/rpc/svc.c,v
retrieving revision 1.1.1.1
diff -u -r1.1.1.1 svc.c
--- src/lib/rpc/svc.c 20 Oct 2000 07:15:19 -0000 1.1.1.1
+++ src/lib/rpc/svc.c 5 Jan 2003 22:15:05 -0000
@@ -41,12 +41,11 @@
* Copyright (C) 1984, Sun Microsystems, Inc.
*/
-#include <sys/errno.h>
+#include <errno.h>
#include <gssrpc/rpc.h>
#include <gssrpc/pmap_clnt.h>
#include <stdio.h>
-extern int errno;
#ifdef FD_SETSIZE
static SVCXPRT **xports;
Index: src/lib/rpc/svc_auth_gssapi.c
===================================================================
RCS file: /afs/sipb.mit.edu/project/debian/cvs/krb5/src/lib/rpc/svc_auth_gssapi.c,v
retrieving revision 1.1.1.1
diff -u -r1.1.1.1 svc_auth_gssapi.c
--- src/lib/rpc/svc_auth_gssapi.c 20 Oct 2000 07:15:19 -0000 1.1.1.1
+++ src/lib/rpc/svc_auth_gssapi.c 5 Jan 2003 22:15:05 -0000
@@ -12,6 +12,7 @@
*/
#include <stdio.h>
+#include <errno.h>
#include <string.h>
#include <gssrpc/rpc.h>
#include <sys/stat.h>
@@ -115,7 +116,6 @@
static client_list *clients = NULL;
-extern int errno;
enum auth_stat _svcauth_gssapi(rqst, msg, no_dispatch)
register struct svc_req *rqst;
Index: src/lib/rpc/svc_run.c
===================================================================
RCS file: /afs/sipb.mit.edu/project/debian/cvs/krb5/src/lib/rpc/svc_run.c,v
retrieving revision 1.1.1.1
diff -u -r1.1.1.1 svc_run.c
--- src/lib/rpc/svc_run.c 20 Oct 2000 07:15:19 -0000 1.1.1.1
+++ src/lib/rpc/svc_run.c 5 Jan 2003 22:15:05 -0000
@@ -37,7 +37,7 @@
* Wait for input, call server program.
*/
#include <gssrpc/rpc.h>
-#include <sys/errno.h>
+#include <errno.h>
void
svc_run()
@@ -47,7 +47,6 @@
#else
int readfds;
#endif /* def FD_SETSIZE */
- extern int errno;
for (;;) {
#ifdef FD_SETSIZE
Index: src/lib/rpc/svc_udp.c
===================================================================
RCS file: /afs/sipb.mit.edu/project/debian/cvs/krb5/src/lib/rpc/svc_udp.c,v
retrieving revision 1.1.1.1
diff -u -r1.1.1.1 svc_udp.c
--- src/lib/rpc/svc_udp.c 20 Oct 2000 07:15:19 -0000 1.1.1.1
+++ src/lib/rpc/svc_udp.c 5 Jan 2003 22:15:05 -0000
@@ -72,7 +72,6 @@
svcudp_destroy
};
-extern int errno;
/*
* kept in xprt->xp_p2
Index: src/tests/dejagnu/t_inetd.c
===================================================================
RCS file: /afs/sipb.mit.edu/project/debian/cvs/krb5/src/tests/dejagnu/t_inetd.c,v
retrieving revision 1.1.1.1
diff -u -r1.1.1.1 t_inetd.c
--- src/tests/dejagnu/t_inetd.c 20 Oct 2000 07:15:19 -0000 1.1.1.1
+++ src/tests/dejagnu/t_inetd.c 5 Jan 2003 22:15:06 -0000
@@ -55,7 +55,6 @@
#include "com_err.h"
-extern int errno;
char *progname;
Index: src/util/db2/clib/mkstemp.c
===================================================================
RCS file: /afs/sipb.mit.edu/project/debian/cvs/krb5/src/util/db2/clib/mkstemp.c,v
retrieving revision 1.1.1.1
diff -u -r1.1.1.1 mkstemp.c
--- src/util/db2/clib/mkstemp.c 20 Oct 2000 07:15:19 -0000 1.1.1.1
+++ src/util/db2/clib/mkstemp.c 5 Jan 2003 22:15:06 -0000
@@ -61,7 +61,6 @@
char *path;
register int *doopen;
{
- extern int errno;
register char *start, *trv;
struct stat sbuf;
u_int pid;
Index: src/util/db2/test/SEQ_TEST/t.c
===================================================================
RCS file: /afs/sipb.mit.edu/project/debian/cvs/krb5/src/util/db2/test/SEQ_TEST/t.c,v
retrieving revision 1.1.1.1
diff -u -r1.1.1.1 t.c
--- src/util/db2/test/SEQ_TEST/t.c 20 Oct 2000 07:15:19 -0000 1.1.1.1
+++ src/util/db2/test/SEQ_TEST/t.c 5 Jan 2003 22:15:06 -0000
@@ -8,7 +8,6 @@
#include <stdlib.h>
#include <string.h>
-extern int errno;
void main(int argc, char *argv[]) {
char id1[] = {" "}, id2[] = {" "};
Index: src/util/ss/help.c
===================================================================
RCS file: /afs/sipb.mit.edu/project/debian/cvs/krb5/src/util/ss/help.c,v
retrieving revision 1.1.1.1
diff -u -r1.1.1.1 help.c
--- src/util/ss/help.c 20 Oct 2000 07:15:20 -0000 1.1.1.1
+++ src/util/ss/help.c 5 Jan 2003 22:15:07 -0000
@@ -6,13 +6,13 @@
#include <sys/param.h>
#include <sys/types.h>
+#include <errno.h>
#include <sys/file.h>
#include <fcntl.h> /* just for O_* */
#include <sys/wait.h>
#include "ss_internal.h"
#include "copyright.h"
-extern int errno;
void ss_help (argc, argv, sci_idx, info_ptr)
int argc;
Index: src/util/ss/pager.c
===================================================================
RCS file: /afs/sipb.mit.edu/project/debian/cvs/krb5/src/util/ss/pager.c,v
retrieving revision 1.1.1.1
diff -u -r1.1.1.1 pager.c
--- src/util/ss/pager.c 20 Oct 2000 07:15:20 -0000 1.1.1.1
+++ src/util/ss/pager.c 5 Jan 2003 22:15:07 -0000
@@ -9,6 +9,7 @@
#include "ss_internal.h"
#include "copyright.h"
+#include <errno.h>
#include <stdio.h>
#include <sys/types.h>
#include <sys/file.h>
@@ -17,7 +18,6 @@
static char MORE[] = "more";
extern char *_ss_pager_name;
extern char *getenv();
-extern int errno;
/*
* this needs a *lot* of work....
Index: src/include/kerberosIV/krb.h
===================================================================
RCS file: /afs/sipb/project/debian/cvs/krb5/src/include/kerberosIV/krb.h,v
retrieving revision 1.1.1.1
diff -u -r1.1.1.1 krb.h
--- src/include/kerberosIV/krb.h 20 Oct 2000 07:15:19 -0000 1.1.1.1
+++ src/include/kerberosIV/krb.h 6 Jan 2003 20:20:59 -0000
@@ -429,14 +429,6 @@
#define DEB(x) /* nothing */
#endif
-/*
- * Some Unixes don't declare errno in <errno.h>...
- * Move this out to individual c-*.h files if it becomes troublesome.
- */
-#if !defined(errno) && !defined(_WINDOWS)
-extern int errno;
-#endif
-
/* Define a couple of function types including parameters. These
are needed on MS-Windows to convert arguments of the function pointers
to the proper types during calls. */
Index: src/lib/krb4/in_tkt.c
===================================================================
RCS file: /afs/sipb/project/debian/cvs/krb5/src/lib/krb4/in_tkt.c,v
retrieving revision 1.1.1.2
diff -u -r1.1.1.2 in_tkt.c
--- src/lib/krb4/in_tkt.c 2 Mar 2001 10:32:00 -0000 1.1.1.2
+++ src/lib/krb4/in_tkt.c 6 Jan 2003 20:44:25 -0000
@@ -25,6 +25,8 @@
*/
#include <stdio.h>
+#include <errno.h>
+
#include <string.h>
#include "krb.h"
#include <fcntl.h>
Index: src/lib/krb4/send_to_kdc.c
===================================================================
RCS file: /afs/sipb/project/debian/cvs/krb5/src/lib/krb4/send_to_kdc.c,v
retrieving revision 1.1.1.1
diff -u -r1.1.1.1 send_to_kdc.c
--- src/lib/krb4/send_to_kdc.c 20 Oct 2000 07:15:19 -0000 1.1.1.1
+++ src/lib/krb4/send_to_kdc.c 6 Jan 2003 20:44:25 -0000
@@ -14,6 +14,7 @@
#include "krbports.h"
#include "prot.h"
#include <stdio.h>
+#include <errno.h>
#include <string.h>
#ifdef HAVE_SYS_SELECT_H
#include <sys/select.h>
More information about the krbdev
mailing list