340
|
1 |
--- gmediaserver-0.12.0/src/interface.c.orig 2007-07-15 17:07:20.758352141 +0700
|
|
2 |
+++ gmediaserver-0.12.0/src/interface.c 2007-07-15 17:40:24.506612594 +0700
|
|
3 |
@@ -23,6 +23,9 @@
|
|
4 |
#include <stdio.h> /* C89 */
|
|
5 |
#include <string.h> /* C89 */
|
|
6 |
#include <sys/socket.h> /* POSIX */
|
|
7 |
+#ifdef sun
|
|
8 |
+#include <sys/sockio.h>
|
|
9 |
+#endif
|
|
10 |
#include <sys/ioctl.h> /* ? */
|
|
11 |
#include <sys/param.h> /* ? */
|
|
12 |
#include <net/if.h> /* ? */
|
|
13 |
@@ -30,6 +33,9 @@
|
|
14 |
#include <arpa/inet.h> /* ? */
|
|
15 |
#include "strnlen.h" /* Gnulib */
|
|
16 |
#include "gmediaserver.h"
|
|
17 |
+#ifdef sun
|
|
18 |
+#include "minmax.h"
|
|
19 |
+#endif
|
|
20 |
|
|
21 |
char *
|
|
22 |
get_ip_by_spec(char *spec)
|
|
23 |
--- gmediaserver-0.12.0/src/webclient.c.orig 2007-07-15 17:17:14.983125084 +0700
|
|
24 |
+++ gmediaserver-0.12.0/src/webclient.c 2007-07-15 17:17:34.303327717 +0700
|
|
25 |
@@ -371,7 +371,9 @@
|
|
26 |
if (res == NULL || *res != '\0')
|
|
27 |
return false;
|
|
28 |
|
|
29 |
+#ifndef sun
|
|
30 |
tm.tm_zone = "GMT";
|
|
31 |
+#endif
|
|
32 |
t = mktime(&tm);
|
|
33 |
if (t == (time_t) -1)
|
|
34 |
return false;
|