Update lftp to 3.7.7 (#4413)
[openwrt/svn-archive/archive.git] / net / lftp / patches / 002-gettimeofday.patch
1 diff -burN lftp-3.7.7/lib/sys_time.in.h lftp-3.7.7.patched/lib/sys_time.in.h
2 --- lftp-3.7.7/lib/sys_time.in.h 2008-10-24 16:00:33.000000000 +0200
3 +++ lftp-3.7.7.patched/lib/sys_time.in.h 2009-01-03 21:20:34.129104049 +0100
4 @@ -39,6 +39,10 @@
5 # include <time.h>
6 # endif
7
8 +#ifdef __cplusplus
9 +extern "C" {
10 +#endif
11 +
12 # if ! @HAVE_STRUCT_TIMEVAL@
13 struct timeval
14 {
15 @@ -53,4 +57,8 @@
16 int gettimeofday (struct timeval *restrict, void *restrict);
17 # endif
18
19 +#ifdef __cplusplus
20 +}
21 +#endif
22 +
23 #endif /* _GL_SYS_TIME_H */