Revision: 55647
http://sourceforge.net/p/brlcad/code/55647
Author: brlcad
Date: 2013-06-04 03:24:27 +0000 (Tue, 04 Jun 2013)
Log Message:
-----------
hook off of the configure tests so we don't get duplciate declarations when the
posix kill() and fileno() functions are available.
Modified Paths:
--------------
brlcad/trunk/src/libbu/backtrace.c
Modified: brlcad/trunk/src/libbu/backtrace.c
===================================================================
--- brlcad/trunk/src/libbu/backtrace.c 2013-06-04 03:16:03 UTC (rev 55646)
+++ brlcad/trunk/src/libbu/backtrace.c 2013-06-04 03:24:27 UTC (rev 55647)
@@ -46,12 +46,15 @@
#include "bu.h"
-/* c99 doesn't declare these */
-#ifdef HAVE_KILL
+/* strict c99 doesn't declare kill() (but POSIX does) */
+#if defined(HAVE_KILL) && !defined(HAVE_DECL_KILL)
extern int kill(pid_t, int);
#endif
-#ifndef fileno
+/* fileno() may be a macro (e.g., Windows) or may not even be declared
+ * when compiling strict, but declare it as needed
+ */
+#if defined(HAVE_FILENO) && !defined(HAVE_DECL_FILENO)
extern int fileno(FILE*);
#endif
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
How ServiceNow helps IT people transform IT departments:
1. A cloud service to automate IT design, transition and operations
2. Dashboards that offer high-level views of enterprise services
3. A single system of record for all IT processes
http://p.sf.net/sfu/servicenow-d2d-j
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits