Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 101344 Details for
Bug 154272
net-misc/rdate-1.4-r1 missing stime() function in freebsd
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
stime patch for fbsd
1.4-rdate-bsd-stime.patch (text/plain), 511 bytes, created by
Alessio Cassibba (X-Drum)
on 2006-11-06 10:28:07 UTC
(
hide
)
Description:
stime patch for fbsd
Filename:
MIME Type:
Creator:
Alessio Cassibba (X-Drum)
Created:
2006-11-06 10:28:07 UTC
Size:
511 bytes
patch
obsolete
>--- rdate.c 2004-04-21 20:44:22 +0200 >+++ rdate.c 2006-11-06 19:17:40 +0100 >@@ -36,6 +36,23 @@ > #include <signal.h> > #include <setjmp.h> > >+/*BSD has no stime() function*/ >+#ifndef HAVE_STIME >+#include <sys/time.h> >+ >+int stime(time_t *t) >+{ >+ struct timeval tv; >+ tv.tv_sec = *t; >+ tv.tv_usec = 0; >+ >+ if(settimeofday(&tv, NULL) < 0) >+ return -1; >+ >+ return 0; >+} >+#endif >+ > /* difference between Unix time and net time */ > #define BASE1970 2208988800L > #define DEFAULT_PORT 37
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 154272
: 101344 |
101345