[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
gEDA-cvs: branch: master updated (1.4.0-20080127-7-g5768fbf)
The branch, master has been updated
via 5768fbf65867a586c5f5eb2ac0dba573d1c9912e (commit)
from d848ac7f515187a536f10f9e246c1234f648d723 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
=========
Summary
=========
libgeda/configure.ac.in | 2 +-
libgeda/src/o_picture.c | 5 +++++
2 files changed, 6 insertions(+), 1 deletions(-)
=================
Commit Messages
=================
commit 5768fbf65867a586c5f5eb2ac0dba573d1c9912e
Author: Dan McMahill <dan@xxxxxxxxxxxx>
Date: Fri Feb 1 00:25:52 2008 +0000
Add missing libgen.h
Add a check for libgen.h and if found, include it. This provides
the basename() prototype.
:100644 100644 7950239... 96b9c00... M libgeda/configure.ac.in
:100644 100644 27e9d6e... f8c78b1... M libgeda/src/o_picture.c
=========
Changes
=========
commit 5768fbf65867a586c5f5eb2ac0dba573d1c9912e
Author: Dan McMahill <dan@xxxxxxxxxxxx>
Date: Fri Feb 1 00:25:52 2008 +0000
Add missing libgen.h
Add a check for libgen.h and if found, include it. This provides
the basename() prototype.
diff --git a/libgeda/configure.ac.in b/libgeda/configure.ac.in
index 7950239..96b9c00 100644
--- a/libgeda/configure.ac.in
+++ b/libgeda/configure.ac.in
@@ -334,7 +334,7 @@ AC_HEADER_STDC
AC_HEADER_SYS_WAIT
AC_HEADER_DIRENT
AC_CHECK_HEADERS(unistd.h string.h stdlib.h stdarg.h assert.h fcntl.h \
- errno.h)
+ errno.h libgen.h)
AC_MSG_CHECKING([for optarg in unistd.h])
AC_TRY_COMPILE(
diff --git a/libgeda/src/o_picture.c b/libgeda/src/o_picture.c
index 27e9d6e..f8c78b1 100644
--- a/libgeda/src/o_picture.c
+++ b/libgeda/src/o_picture.c
@@ -25,6 +25,11 @@
#endif
#include <math.h>
+/* for basename(3) */
+#ifdef HAVE_LIBGEN_H
+#include <libgen.h>
+#endif
+
#include <gtk/gtk.h>
#include <guile/gh.h>
_______________________________________________
geda-cvs mailing list
geda-cvs@xxxxxxxxxxxxxx
http://www.seul.org/cgi-bin/mailman/listinfo/geda-cvs