| @@ -1,16 +1,17 @@ | | | @@ -1,16 +1,17 @@ |
1 | $NetBSD: patch-src_http.c,v 1.1 2014/04/12 06:39:34 wiz Exp $ | | 1 | $NetBSD: patch-src_http.c,v 1.2 2014/04/12 08:15:03 wiz Exp $ |
2 | | | 2 | |
3 | Avoid using the obsolete ftime() function. | | 3 | Avoid using the obsolete ftime() function. |
| | | 4 | https://trac.xiph.org/ticket/2014 |
4 | | | 5 | |
5 | --- src/http.c.orig 2013-12-05 16:49:13.000000000 +0000 | | 6 | --- src/http.c.orig 2013-12-05 16:49:13.000000000 +0000 |
6 | +++ src/http.c | | 7 | +++ src/http.c |
7 | @@ -347,7 +347,7 @@ typedef int op_sock; | | 8 | @@ -347,7 +347,7 @@ typedef int op_sock; |
8 | # define op_reset_errno() (errno=0) | | 9 | # define op_reset_errno() (errno=0) |
9 | | | 10 | |
10 | # endif | | 11 | # endif |
11 | -# include <sys/timeb.h> | | 12 | -# include <sys/timeb.h> |
12 | +# include <sys/time.h> | | 13 | +# include <sys/time.h> |
13 | # include <openssl/x509v3.h> | | 14 | # include <openssl/x509v3.h> |
14 | | | 15 | |
15 | /*The maximum number of simultaneous connections. | | 16 | /*The maximum number of simultaneous connections. |
16 | @@ -788,7 +788,7 @@ struct OpusHTTPConn{ | | 17 | @@ -788,7 +788,7 @@ struct OpusHTTPConn{ |