summaryrefslogtreecommitdiff
path: root/textproc/gdict/files/patch-gdict.c
diff options
context:
space:
mode:
Diffstat (limited to 'textproc/gdict/files/patch-gdict.c')
-rw-r--r--textproc/gdict/files/patch-gdict.c26
1 files changed, 26 insertions, 0 deletions
diff --git a/textproc/gdict/files/patch-gdict.c b/textproc/gdict/files/patch-gdict.c
new file mode 100644
index 000000000000..fe5706794164
--- /dev/null
+++ b/textproc/gdict/files/patch-gdict.c
@@ -0,0 +1,26 @@
+--- gdict.c Mon Mar 29 17:35:54 1999
++++ gdict.c~ Thu Jul 22 22:25:19 1999
+@@ -13,12 +13,13 @@
+ * Window resizing and cleanup by Iain (Nodatadj, EFNet) 23-Mar-1999
+ */
+
++#include <sys/types.h>
+ #include <gtk/gtk.h>
+ #include <stdio.h>
+ #include <sys/socket.h>
+ #include <unistd.h>
+-#include <arpa/inet.h>
+ #include <netinet/in.h>
++#include <arpa/inet.h>
+ #include <string.h>
+
+ /* globals */
+@@ -154,7 +155,7 @@
+ Sockaddr.sin_port = htons(2627);
+ Sockaddr.sin_addr.s_addr = inet_addr ("128.52.39.7");
+
+- err = connect (sd, &Sockaddr, sizeof(Sockaddr));
++ err = connect (sd, (struct sockaddr *) &Sockaddr, sizeof(Sockaddr));
+
+ if (err != 0) {
+ sprintf (buffer, "Could not connect to dictionary server!");