diff options
author | Kris Kennaway <kris@FreeBSD.org> | 1999-07-22 13:14:20 +0000 |
---|---|---|
committer | Kris Kennaway <kris@FreeBSD.org> | 1999-07-22 13:14:20 +0000 |
commit | a30e573225e06c333070e3e9430a2baf2b49aa85 (patch) | |
tree | 6ca7ff17fd27c674a01f010a2aaf286fc05911e9 /textproc/gdict/files | |
parent | Distfile coda-4.6.6.tgz is no longer stored at CMU. (diff) |
GTK app which queries a dictionary server and returns a word definition.
Based on dict.
PR: 12694
Submitted by: domi@saargate.de
Notes
Notes:
svn path=/head/; revision=20312
Diffstat (limited to 'textproc/gdict/files')
-rw-r--r-- | textproc/gdict/files/patch-aa | 14 | ||||
-rw-r--r-- | textproc/gdict/files/patch-ab | 25 | ||||
-rw-r--r-- | textproc/gdict/files/patch-ac | 26 |
3 files changed, 65 insertions, 0 deletions
diff --git a/textproc/gdict/files/patch-aa b/textproc/gdict/files/patch-aa new file mode 100644 index 000000000000..f93fc2ce03f6 --- /dev/null +++ b/textproc/gdict/files/patch-aa @@ -0,0 +1,14 @@ +--- Makefile Mon Mar 29 08:02:27 1999 ++++ Makefile~ Thu Jul 22 22:25:09 1999 +@@ -1,8 +1,8 @@ + # Makefile for gdict + +-CC = gcc +-CFLAGS = -O6 -Wall +-CFL_GTK = $(CFLAGS) `gtk-config --cflags` `gtk-config --libs` ++CC ?= gcc ++CFLAGS ?= -O6 -Wall ++CFL_GTK = $(CFLAGS) `gtk12-config --cflags` `gtk12-config --libs` + CFL = $(CFLAGS) + OBJECTS_GDICT = gdict.c + OBJECTS_DICT = dict.c diff --git a/textproc/gdict/files/patch-ab b/textproc/gdict/files/patch-ab new file mode 100644 index 000000000000..3dca82fad976 --- /dev/null +++ b/textproc/gdict/files/patch-ab @@ -0,0 +1,25 @@ +--- dict.c Mon Mar 29 08:10:35 1999 ++++ dict.c~ Thu Jul 22 22:25:16 1999 +@@ -4,11 +4,12 @@ + * Thanks goes out to #linuxos also. :) + */ + ++#include <sys/types.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> + + int main (int argc, char *argv[]) { +@@ -40,7 +41,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) { + printf("Could not connect to dictionary server!\n"); diff --git a/textproc/gdict/files/patch-ac b/textproc/gdict/files/patch-ac new file mode 100644 index 000000000000..fe5706794164 --- /dev/null +++ b/textproc/gdict/files/patch-ac @@ -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!"); |