Changeset 02f547f in mainline


Ignore:
Timestamp:
2018-08-25T09:15:46Z (6 years ago)
Author:
Jakub Jermar <jakub@…>
Children:
cc36562b
Parents:
b43f393
git-author:
Jakub Jermar <jakub@…> (2018-08-25 09:15:38)
git-committer:
Jakub Jermar <jakub@…> (2018-08-25 09:15:46)
Message:

Remove Linuxisms from sys/time.h

Location:
uspace/lib/posix
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/posix/include/posix/sys/time.h

    rb43f393 r02f547f  
    3636#include "libc/time.h"
    3737
    38 #define DST_NONE  0
    39 
    4038struct timeval {
    4139        time_t tv_sec;        /* seconds */
     
    4341};
    4442
    45 struct timezone {
    46         int tz_minuteswest;  /* minutes W of Greenwich */
    47         int tz_dsttime;      /* type of dst correction */
    48 };
    49 
    50 extern int gettimeofday(struct timeval *, struct timezone *);
     43extern int gettimeofday(struct timeval *, void *);
    5144
    5245#endif
  • uspace/lib/posix/src/time.c

    rb43f393 r02f547f  
    330330}
    331331
    332 int gettimeofday(struct timeval *tv, struct timezone *tz)
     332int gettimeofday(struct timeval *tv, void *tz)
    333333{
    334334        struct timespec ts;
Note: See TracChangeset for help on using the changeset viewer.