From a30e573225e06c333070e3e9430a2baf2b49aa85 Mon Sep 17 00:00:00 2001 From: Kris Kennaway Date: Thu, 22 Jul 1999 13:14:20 +0000 Subject: GTK app which queries a dictionary server and returns a word definition. Based on dict. PR: 12694 Submitted by: domi@saargate.de --- textproc/gdict/files/patch-aa | 14 ++++++++++++++ textproc/gdict/files/patch-ab | 25 +++++++++++++++++++++++++ textproc/gdict/files/patch-ac | 26 ++++++++++++++++++++++++++ 3 files changed, 65 insertions(+) create mode 100644 textproc/gdict/files/patch-aa create mode 100644 textproc/gdict/files/patch-ab create mode 100644 textproc/gdict/files/patch-ac (limited to 'textproc/gdict/files') 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 + #include + #include + #include +-#include + #include ++#include + #include + + 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 + #include + #include + #include + #include +-#include + #include ++#include + #include + + /* 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!"); -- cgit v1.2.3