summaryrefslogtreecommitdiff
path: root/libguile/error.c
diff options
context:
space:
mode:
authorMikael Djurfeldt <djurfeldt@nada.kth.se>2001-03-10 16:56:09 +0000
committerMikael Djurfeldt <djurfeldt@nada.kth.se>2001-03-10 16:56:09 +0000
commite6e2e95aa53f876e25bee2b0f867350c4a2ddf7a (patch)
tree86bf55ed09f3c4b5ce871e4856bb176871c9a341 /libguile/error.c
parent451d273ac98c0b7f0e5e2c9e267ff14170babf23 (diff)
downloadguile-e6e2e95aa53f876e25bee2b0f867350c4a2ddf7a.tar.gz
* _scm.h: Removed #include <errno.h>.
* error.c, net_db.c, putenv.c, stime.c: Removed declaration of errno variable (can be a macro on some systems, for example when using linux libc with threads). * error.c, filesys.c, gc.c, ioext.c, iselect.c, net_db.c, ports.c, posix.c, print.c, putenv.c, scmsigs.c, script.c, simpos.c, smob.c, socket.c, srcprop.c, stime.c, strop.c, unif.c, vports.c: Added #include <errno.h> in these 20 out of 100 files.
Diffstat (limited to 'libguile/error.c')
-rw-r--r--libguile/error.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/libguile/error.c b/libguile/error.c
index 56454c844..ee8ef2f10 100644
--- a/libguile/error.c
+++ b/libguile/error.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 1995,1996,1997,1998, 2000 Free Software Foundation, Inc.
+/* Copyright (C) 1995,1996,1997,1998, 2000, 2001 Free Software Foundation, Inc.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -45,6 +45,7 @@
#include <stdio.h>
+#include <errno.h>
#include "libguile/_scm.h"
#include "libguile/pairs.h"
@@ -67,8 +68,6 @@
*/
-extern int errno;
-
/* All errors should pass through here. */
void
scm_error (SCM key, const char *subr, const char *message, SCM args, SCM rest)