From 4875a4b66eabdfee2d9186a694ea3599f19a51ed Mon Sep 17 00:00:00 2001 From: Corinna Vinschen Date: Fri, 10 Sep 2004 08:30:51 +0000 Subject: * Makefile.in: Create libutil.a from bsdlib.o exports. * bsdlib.cc (logwtmp): Move from syscalls.cc to here. (login): Ditto. (logout): Ditto. * winsup.h (EXPORT_ALIAS): New macro. * exec.cc: Define alias symbols using EXPORT_ALIAS macro. * syscalls.cc: Ditto. * times.cc: Ditto. --- winsup/cygwin/times.cc | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'winsup/cygwin/times.cc') diff --git a/winsup/cygwin/times.cc b/winsup/cygwin/times.cc index 9dd579a66..12eb821ce 100644 --- a/winsup/cygwin/times.cc +++ b/winsup/cygwin/times.cc @@ -90,7 +90,7 @@ times (struct tms *buf) return tc; } -extern "C" clock_t _times (struct tms *) __attribute__((alias ("times"))); +EXPORT_ALIAS (times, _times) /* settimeofday: BSD */ extern "C" int @@ -172,8 +172,7 @@ gettimeofday (struct timeval *tv, struct timezone *tz) return 0; } -extern "C" int _gettimeofday (struct timeval *, struct timezone *) - __attribute__((alias ("gettimeofday"))); +EXPORT_ALIAS (gettimeofday, _gettimeofday) /* Cygwin internal */ void -- cgit v1.2.3