pkgsrc/misc/wdic/patches/patch-ab
minskim fb518315f4 Import wdic-3.0. Packaged by Yi Min-Cheol.
wdic is a terminal-based English dictionary for Korean.  It fetches
data from the Empas dictionary (http://engdic.emaps.com/).
2005-03-07 14:48:09 +00:00

23 lines
806 B
Text

$NetBSD: patch-ab,v 1.1.1.1 2005/03/07 14:48:09 minskim Exp $
--- wdic_wob_v3.0.c.orig Mon Jan 3 06:29:42 2005
+++ wdic_wob_v3.0.c
@@ -13,6 +13,9 @@
#include <string.h>
#include <netdb.h>
#include <sys/socket.h>
+#if defined(__NetBSD__) || defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__APPLE__)
+#include <netinet/in.h>
+#endif
#define VERSION "v3.0"
#define URL "engdic.empas.com"
@@ -66,7 +69,7 @@ void parse_result(int sd) {
if(main_start==1) {
if(strcmp("<br>", buf) == 0) { printf("\n"); }
- else if((strstr(buf, "left:8px")!=NULL) || (strstr(buf, "v_ico_plus")!=NULL)) {
+ else if((strstr(buf, "margin-top:15px")!=NULL) || (strstr(buf, "v_ico_plus")!=NULL)) {
// stop parsing main
main_start = 0;
}