diff options
| author | Adam Weinberger <adamw@FreeBSD.org> | 2014-07-29 15:20:01 +0000 |
|---|---|---|
| committer | Adam Weinberger <adamw@FreeBSD.org> | 2014-07-29 15:20:01 +0000 |
| commit | 0438fc26f0d6919bbce73c2edd0403bc86de4371 (patch) | |
| tree | 2150fb848141aac7ed7a5aa3efcb9d9faa7d5fa2 /textproc/gdict/files/patch-dict.c | |
| parent | Rename sysutils/ patch-xy patches to reflect the files they modify. (diff) | |
Rename textproc/ patch-xy patches to reflect the files they modify.
Diffstat (limited to 'textproc/gdict/files/patch-dict.c')
| -rw-r--r-- | textproc/gdict/files/patch-dict.c | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/textproc/gdict/files/patch-dict.c b/textproc/gdict/files/patch-dict.c new file mode 100644 index 000000000000..3dca82fad976 --- /dev/null +++ b/textproc/gdict/files/patch-dict.c @@ -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"); |
