summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/times.cc
diff options
context:
space:
mode:
Diffstat (limited to 'winsup/cygwin/times.cc')
-rw-r--r--winsup/cygwin/times.cc5
1 files changed, 2 insertions, 3 deletions
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