Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 99478 Details for
Bug 151079
[PATCH] sys-process/at doesn`t compile on g/fbsd
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
at-fbsd.patch
at-fbsd.patch (text/plain), 2.69 KB, created by
Timothy Redaelli (RETIRED)
on 2006-10-12 15:20:01 UTC
(
hide
)
Description:
at-fbsd.patch
Filename:
MIME Type:
Creator:
Timothy Redaelli (RETIRED)
Created:
2006-10-12 15:20:01 UTC
Size:
2.69 KB
patch
obsolete
>--- at-3.1.8.old/configure.in 2002-01-18 09:07:02 +0100 >+++ at-3.1.8/configure.in 2006-10-12 23:44:32 +0200 >@@ -51,6 +51,13 @@ > AC_DEFINE(HAVE_ATTRIBUTE_NORETURN), > AC_MSG_RESULT(no) > ) >+ >+dnl Templates for autoheader >+ >+AH_TEMPLATE([HAVE_DAYLIGHT], []) >+AH_TEMPLATE([HAVE_TM_ISDST], []) >+AH_TEMPLATE([NEED_YYWRAP], []) >+ > dnl Checks for libraries. > > AC_CHECK_LIB(fl,yywrap, >@@ -74,7 +81,7 @@ > AC_TYPE_PID_T > AC_TYPE_SIZE_T > AC_STRUCT_TM >- >+AC_STRUCT_TIMEZONE_DAYLIGHT > > dnl Checks for library functions. > AC_FUNC_VPRINTF >--- at-3.1.8.old/acinclude.m4 1970-01-01 01:00:00 +0100 >+++ at-3.1.8/acinclude.m4 2006-10-12 23:41:34 +0200 >@@ -0,0 +1,44 @@ >+dnl from autoconf 2.13 acspecific.m4, with changes to check for daylight >+ >+AC_DEFUN([AC_STRUCT_TIMEZONE_DAYLIGHT], >+[AC_REQUIRE([AC_STRUCT_TM])dnl >+AC_CACHE_CHECK([for tm_zone in struct tm], ac_cv_struct_tm_zone, >+[AC_TRY_COMPILE([#include <sys/types.h> >+#include <$ac_cv_struct_tm>], [struct tm tm; tm.tm_zone;], >+ ac_cv_struct_tm_zone=yes, ac_cv_struct_tm_zone=no)]) >+if test "$ac_cv_struct_tm_zone" = yes; then >+ AC_DEFINE(HAVE_TM_ZONE,1,[HAVE_TM_ZONE]) >+fi >+AC_CACHE_CHECK(for tzname, ac_cv_var_tzname, >+[AC_TRY_LINK( >+changequote(<<, >>)dnl >+<<#include <time.h> >+#ifndef tzname /* For SGI. */ >+extern char *tzname[]; /* RS6000 and others reject char **tzname. */ >+#endif>>, >+changequote([, ])dnl >+[atoi(*tzname);], ac_cv_var_tzname=yes, ac_cv_var_tzname=no)]) >+ if test $ac_cv_var_tzname = yes; then >+ AC_DEFINE(HAVE_TZNAME,1,[HAVE_TZNAME]) >+ fi >+ >+AC_CACHE_CHECK([for tm_isdst in struct tm], ac_cv_struct_tm_isdst, >+[AC_TRY_COMPILE([#include <sys/types.h> >+#include <$ac_cv_struct_tm>], [struct tm tm; tm.tm_isdst;], >+ ac_cv_struct_tm_isdst=yes, ac_cv_struct_tm_isdst=no)]) >+if test "$ac_cv_struct_tm_isdst" = yes; then >+ AC_DEFINE(HAVE_TM_ISDST) >+fi >+AC_CACHE_CHECK(for daylight, ac_cv_var_daylight, >+[AC_TRY_LINK( >+changequote(<<, >>)dnl >+<<#include <time.h> >+#ifndef daylight /* In case IRIX #defines this, too */ >+extern int daylight; >+#endif>>, >+changequote([, ])dnl >+[atoi(daylight);], ac_cv_var_daylight=yes, ac_cv_var_daylight=no)]) >+ if test $ac_cv_var_daylight = yes; then >+ AC_DEFINE(HAVE_DAYLIGHT) >+ fi >+]) >--- at-3.1.8.old/parsetime.y 2002-01-18 05:15:27 +0100 >+++ at-3.1.8/parsetime.y 2006-10-12 23:50:37 +0200 >@@ -370,6 +370,19 @@ > if (exectime == (time_t)-1) > return 0; > if (isgmt) { >+#ifndef HAVE_DAYLIGHT >+ int daylight = 0; >+#ifdef HAVE_TM_ISDST >+ time_t now = (time_t)0; >+ >+ if (now == (time_t)0) { >+ struct tm *tm1; >+ (void)time(&now); >+ tm1 = localtime(&now); >+ daylight = tm1->tm_isdst; >+ } >+#endif /* HAVE_TM_ISDST */ >+#endif /* HAVE_DAYLIGHT */ > exectime += timezone; > if (daylight) { > exectime -= 3600;
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 151079
: 99478