This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
vxWorks support for libf2c
- To: egcs at cygnus dot com
- Subject: vxWorks support for libf2c
- From: mrs at wrs dot com (Mike Stump)
- Date: Wed, 20 Jan 1999 18:17:22 -0800
I tried to be as kind as possible to the files. autoconf doesn't work
perfectly in my situation, which is why I did things the way I did.
Until autoconf is able to do more for me, can we put these in?
Is there a make fragment I can stick them in, instead?
1999-01-20 Mike Stump <mrs@wrs.com>
* etime_.c, dtime_.c, sys_clock.c, datetime_.c: Add vxWorks support.
Doing diffs in libf2c/libU77:
*** libf2c/libU77/etime_.c.~1~ Wed Jan 20 15:35:12 1999
--- libf2c/libU77/etime_.c Wed Jan 20 17:53:25 1999
*************** Boston, MA 02111-1307, USA. */
*** 18,23 ****
--- 18,27 ----
#ifdef HAVE_CONFIG_H
#include "config.h"
+ #ifdef __vxworks
+ #undef HAVE_GETRUSAGE
+ #undef HAVE_TIMES
+ #endif
#endif
#if HAVE_UNISTD_H
# include <unistd.h>
*** libf2c/libU77/sys_clock_.c.~1~ Wed Jan 20 17:39:48 1999
--- libf2c/libU77/sys_clock_.c Wed Jan 20 18:06:33 1999
*************** Boston, MA 02111-1307, USA. */
*** 39,44 ****
--- 39,48 ----
#include <errno.h> /* for ENOSYS */
#include "f2c.h"
+ #ifdef __vxworks
+ #undef HAVE_TIMES
+ #endif
+
#ifdef KR_headers
int G77_system_clock_0 (count, count_rate, count_max)
integer *count, *count_rate, *count_max;
*** libf2c/libU77/datetime_.c.~1~ Wed Jan 20 17:39:55 1999
--- libf2c/libU77/datetime_.c Wed Jan 20 17:47:20 1999
*************** Boston, MA 02111-1307, USA. */
*** 24,29 ****
--- 24,32 ----
# include <sys/time.h>
# include <time.h>
#else
+ # if HAVE_SYS_TIMES_H
+ # include <sys/times.h>
+ # endif
# if HAVE_SYS_TIME_H
# include <sys/time.h>
# else
*** libf2c/libU77/dtime_.c.~1~ Wed Jan 20 17:38:57 1999
--- libf2c/libU77/dtime_.c Wed Jan 20 17:53:13 1999
*************** Boston, MA 02111-1307, USA. */
*** 18,23 ****
--- 18,27 ----
#ifdef HAVE_CONFIG_H
#include "config.h"
+ #ifdef __vxworks
+ #undef HAVE_GETRUSAGE
+ #undef HAVE_TIMES
+ #endif
#endif
#if HAVE_UNISTD_H
# include <unistd.h>
--------------