logo

overlay

My (experimental) gentoo overlay

datefudge-alt-libc.patch (1071B)


      1 diff --git a/datefudge.c b/datefudge.c
      2 index f816639..1501b10 100644
      3 --- a/datefudge.c
      4 +++ b/datefudge.c
      5 @@ -5,8 +5,6 @@
      6   * Copyright (C) 2008-2011, Robert Luberda <robert@debian.org>
      7   *
      8   */
      9 -#define _GNU_SOURCE
     10 -
     11  #include <sys/file.h>
     12  #include <sys/stat.h>
     13  #include <fcntl.h>
     14 @@ -17,7 +15,7 @@
     15  #include <features.h>
     16  #include <unistd.h>
     17  #include <time.h>
     18 -#include <sys/time.h>
     19 +#include <sys/types.h>
     20  
     21  static int fudge = 0;
     22  static int dostatic = 0;
     23 @@ -62,8 +60,8 @@ time_t time(time_t *x) {
     24  
     25  #endif
     26  
     27 -int __gettimeofday(struct timeval *x, struct timezone *y) {
     28 -    static int (*libc_gettimeofday)(struct timeval *, struct timezone *) = NULL;
     29 +int __gettimeofday(struct timeval *x, void *y) {
     30 +    static int (*libc_gettimeofday)(struct timeval *, void *) = NULL;
     31      int res;
     32  
     33      if(!libc_gettimeofday)
     34 @@ -74,7 +72,7 @@ int __gettimeofday(struct timeval *x, struct timezone *y) {
     35      return 0;
     36  }
     37  
     38 -int gettimeofday(struct timeval *x, struct timezone *y) { 
     39 +int gettimeofday(struct timeval *x, void *y) { 
     40      return __gettimeofday(x,y); 
     41  }
     42