mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-03 01:23:49 +00:00
time(3)'s first and only arg is a time_t* which is not necessarily equal
to a long*.
This commit is contained in:
parent
f720bd130b
commit
e7be8c8bed
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=20080
20
math/ss/files/patch-ad
Normal file
20
math/ss/files/patch-ad
Normal file
@ -0,0 +1,20 @@
|
||||
--- interp.c.orig Tue Apr 20 19:01:03 1999
|
||||
+++ interp.c Tue Apr 20 19:03:15 1999
|
||||
@@ -560,7 +560,7 @@
|
||||
#if defined(__GO32__) || defined(__NeXT__)
|
||||
time_t time (time_t *) ;
|
||||
#else
|
||||
-# ifndef OSF1
|
||||
+# if !defined(OSF1) && !defined(__FreeBSD__)
|
||||
long time();
|
||||
# endif
|
||||
#endif
|
||||
@@ -571,7 +571,7 @@
|
||||
long tloc;
|
||||
|
||||
if (which == NOW) {
|
||||
-#if defined(__GO32__) || defined(__NeXT__)
|
||||
+#if defined(__GO32__) || defined(__NeXT__) || defined(__FreeBSD__)
|
||||
return (double) time ((time_t *) NULL) ;
|
||||
#else
|
||||
return (double) time((long *)0);
|
Loading…
Reference in New Issue
Block a user