new
[libcurl.git] / curl.beos-patch
blob25a1b3b60c7861ca33acca5ec01c72a6358c7185
1 ? Makefile.in
2 ? autogen.sh
3 ? configure
4 ? lib/Makefile.in
5 ? src/Makefile.in
6 Index: config.h.in
7 ===================================================================
8 RCS file: /cvs/curl/curl/config.h.in,v
9 retrieving revision 1.10
10 diff -u -r1.10 config.h.in
11 --- config.h.in 1999/10/17 11:18:34     1.10
12 +++ config.h.in 1999/11/24 15:15:21
13 @@ -109,6 +109,9 @@
14  /* Define if you have the <getopt.h> header file.  */
15  #undef HAVE_GETOPT_H
17 +/* Define if you have the <net/if.h> header file.  */
18 +#undef HAVE_NET_IF_H
20  /* Define if you have the <netdb.h> header file.  */
21  #undef HAVE_NETDB_H
23 Index: configure.in
24 ===================================================================
25 RCS file: /cvs/curl/curl/configure.in,v
26 retrieving revision 1.35
27 diff -u -r1.35 configure.in
28 --- configure.in        1999/11/11 21:05:38     1.35
29 +++ configure.in        1999/11/24 15:15:21
30 @@ -117,24 +117,26 @@
32  dnl Checks for header files.
33  AC_HEADER_STDC
34 -AC_CHECK_HEADERS( unistd.h \
35 -                  arpa/inet.h \
36 -                  netinet/in.h \
37 -                  netdb.h \
38 -                  sys/select.h \
39 -                  sys/socket.h \
40 -                  sys/sockio.h \
41 -                  sys/stat.h \
42 -                  sys/types.h \
43 -                  getopt.h \
44 -                  sys/param.h \
45 -                  termios.h \
46 -                  termio.h  \
47 -                  sgtty.h \
48 -                  fcntl.h \
49 -                 dlfcn.h \
50 -                  alloca.h )
52 +AC_CHECK_HEADERS( \
53 +        unistd.h \
54 +        arpa/inet.h \
55 +        net/if.h \
56 +        netinet/in.h \
57 +        netdb.h \
58 +        sys/select.h \
59 +        sys/socket.h \
60 +        sys/sockio.h \
61 +        sys/stat.h \
62 +        sys/types.h \
63 +        getopt.h \
64 +        sys/param.h \
65 +        termios.h \
66 +        termio.h \
67 +        sgtty.h \
68 +        fcntl.h \
69 +        dlfcn.h \
70 +        alloca.h \
73  dnl Check for libz header
74  dnl AC_CHECK_HEADERS(zlib.h)
75 Index: include/curl/curl.h
76 ===================================================================
77 RCS file: /cvs/curl/curl/include/curl/curl.h,v
78 retrieving revision 1.5
79 diff -u -r1.5 curl.h
80 --- curl.h      1999/11/23 08:22:42     1.5
81 +++ curl.h      1999/11/24 15:15:21
82 @@ -365,9 +365,13 @@
83    TIMECOND_LAST
84  } TimeCond;
86 +#ifdef __BEOS__
87 +#include <support/SupportDefs.h>
88 +#else
89  #ifndef __cplusplus        /* (rabe) */
90  typedef char bool;
91  #endif                     /* (rabe) */
92 +#endif
94  /**********************************************************************
95   *
96 Index: lib/Makefile.am
97 ===================================================================
98 RCS file: /cvs/curl/curl/lib/Makefile.am,v
99 retrieving revision 1.16
100 diff -u -r1.16 Makefile.am
101 --- Makefile.am 1999/10/22 13:27:36     1.16
102 +++ Makefile.am 1999/11/24 15:15:21
103 @@ -9,7 +9,7 @@
104  # Some flags needed when trying to cause warnings ;-)
105  # CFLAGS = -Wall -pedantic
107 -INCLUDES = -I../include
108 +INCLUDES = -I$(top_srcdir)/include
110  libcurl_a_SOURCES = \
111  arpa_telnet.h  file.c         getpass.h      netrc.h        timeval.c \
112 Index: lib/dict.c
113 ===================================================================
114 RCS file: /cvs/curl/curl/lib/dict.c,v
115 retrieving revision 1.5
116 diff -u -r1.5 dict.c
117 --- dict.c      1999/10/13 22:27:12     1.5
118 +++ dict.c      1999/11/24 15:15:22
119 @@ -66,8 +66,12 @@
120  #include <unistd.h>
121  #endif
122  #include <netdb.h>
123 +#ifdef HAVE_ARPA_INET_H
124  #include <arpa/inet.h>
125 +#endif
126 +#ifdef HAVE_NET_IF_H
127  #include <net/if.h>
128 +#endif
129  #include <sys/ioctl.h>
130  #include <signal.h>
132 Index: lib/download.c
133 ===================================================================
134 RCS file: /cvs/curl/curl/lib/download.c,v
135 retrieving revision 1.30
136 diff -u -r1.30 download.c
137 --- download.c  1999/11/23 08:24:26     1.30
138 +++ download.c  1999/11/24 15:15:23
139 @@ -54,6 +54,10 @@
140  #include "urldata.h"
141  #include <curl/curl.h>
143 +#ifdef __BEOS__
144 +#include <net/socket.h>
145 +#endif
147  #ifdef WIN32
148  #if !defined( __GNUC__) || defined(__MINGW32__)
149  #include <winsock.h>
150 Index: lib/file.c
151 ===================================================================
152 RCS file: /cvs/curl/curl/lib/file.c,v
153 retrieving revision 1.6
154 diff -u -r1.6 file.c
155 --- file.c      1999/11/19 07:25:40     1.6
156 +++ file.c      1999/11/24 15:15:23
157 @@ -67,8 +67,12 @@
158  #include <unistd.h>
159  #endif
160  #include <netdb.h>
161 +#ifdef HAVE_ARPA_INET_H
162  #include <arpa/inet.h>
163 +#endif
164 +#ifdef HAVE_NET_IF_H
165  #include <net/if.h>
166 +#endif
167  #include <sys/ioctl.h>
168  #include <signal.h>
170 Index: lib/ftp.c
171 ===================================================================
172 RCS file: /cvs/curl/curl/lib/ftp.c,v
173 retrieving revision 1.18
174 diff -u -r1.18 ftp.c
175 --- ftp.c       1999/11/23 08:25:06     1.18
176 +++ ftp.c       1999/11/24 15:15:26
177 @@ -58,7 +58,9 @@
178  #else /* some kind of unix */
179  #include <sys/socket.h>
180  #include <netinet/in.h>
181 +#ifdef HAVE_ARPA_INET_H
182  #include <arpa/inet.h>
183 +#endif
184  #include <sys/utsname.h>
185  #include <netdb.h>
186  #endif
187 Index: lib/getdate.c
188 ===================================================================
189 RCS file: /cvs/curl/curl/lib/getdate.c,v
190 retrieving revision 1.5
191 diff -u -r1.5 getdate.c
192 --- getdate.c   1999/08/12 06:43:33     1.5
193 +++ getdate.c   1999/11/24 15:15:31
194 @@ -1,26 +1,26 @@
196  /*  A Bison parser, made from getdate.y
197 - by  GNU Bison version 1.25
198 + by  GNU Bison version 1.27
199    */
201  #define YYBISON 1  /* Identify Bison output.  */
203 -#define        tAGO    258
204 -#define        tDAY    259
205 -#define        tDAY_UNIT       260
206 -#define        tDAYZONE        261
207 -#define        tDST    262
208 -#define        tHOUR_UNIT      263
209 -#define        tID     264
210 -#define        tMERIDIAN       265
211 -#define        tMINUTE_UNIT    266
212 -#define        tMONTH  267
213 -#define        tMONTH_UNIT     268
214 -#define        tSEC_UNIT       269
215 -#define        tSNUMBER        270
216 -#define        tUNUMBER        271
217 -#define        tYEAR_UNIT      272
218 -#define        tZONE   273
219 +#define        tAGO    257
220 +#define        tDAY    258
221 +#define        tDAY_UNIT       259
222 +#define        tDAYZONE        260
223 +#define        tDST    261
224 +#define        tHOUR_UNIT      262
225 +#define        tID     263
226 +#define        tMERIDIAN       264
227 +#define        tMINUTE_UNIT    265
228 +#define        tMONTH  266
229 +#define        tMONTH_UNIT     267
230 +#define        tSEC_UNIT       268
231 +#define        tSNUMBER        269
232 +#define        tUNUMBER        270
233 +#define        tYEAR_UNIT      271
234 +#define        tZONE   272
236  #line 1 "getdate.y"
238 @@ -211,9 +211,11 @@
240  #ifndef __cplusplus
241  #ifndef __STDC__
242 +#ifndef const
243  #define const
244  #endif
245  #endif
246 +#endif
250 @@ -221,7 +223,7 @@
251  #define        YYFLAG          -32768
252  #define        YYNTBASE        22
254 -#define YYTRANSLATE(x) ((unsigned)(x) <= 273 ? yytranslate[x] : 32)
255 +#define YYTRANSLATE(x) ((unsigned)(x) <= 272 ? yytranslate[x] : 32)
257  static const char yytranslate[] = {     0,
258       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
259 @@ -249,9 +251,9 @@
260       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
261       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
262       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
263 -     2,     2,     2,     2,     2,     1,     2,     3,     4,     5,
264 -     6,     7,     8,     9,    10,    11,    12,    13,    14,    15,
265 -    16,    17,    18
266 +     2,     2,     2,     2,     2,     1,     3,     4,     5,     6,
267 +     7,     8,     9,    10,    11,    12,    13,    14,    15,    16,
268 +    17,    18
269  };
271  #if YYDEBUG != 0
272 @@ -370,7 +372,8 @@
273      56
274  };
275  /* -*-C-*-  Note some compilers choke on comments on `#line' lines.  */
276 -#line 3 "/usr/lib/bison.simple"
277 +#line 3 "/boot/apps/GeekGadgets/share/bison.simple"
278 +/* This file comes from bison-1.27.  */
280  /* Skeleton output parser for bison,
281     Copyright (C) 1984, 1989, 1990 Free Software Foundation, Inc.
282 @@ -387,46 +390,66 @@
284     You should have received a copy of the GNU General Public License
285     along with this program; if not, write to the Free Software
286 -   Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.  */
287 +   Foundation, Inc., 59 Temple Place - Suite 330,
288 +   Boston, MA 02111-1307, USA.  */
290  /* As a special exception, when this file is copied by Bison into a
291     Bison output file, you may use that output file without restriction.
292     This special exception was added by the Free Software Foundation
293     in version 1.24 of Bison.  */
295 -#ifndef alloca
296 +/* This is the parser code that is written into each bison parser
297 +  when the %semantic_parser declaration is not specified in the grammar.
298 +  It was written by Richard Stallman by simplifying the hairy parser
299 +  used when %semantic_parser is specified.  */
301 +#ifndef YYSTACK_USE_ALLOCA
302 +#ifdef alloca
303 +#define YYSTACK_USE_ALLOCA
304 +#else /* alloca not defined */
305  #ifdef __GNUC__
306 +#define YYSTACK_USE_ALLOCA
307  #define alloca __builtin_alloca
308  #else /* not GNU C.  */
309 -#if (!defined (__STDC__) && defined (sparc)) || defined (__sparc__) || defined (__sparc) || defined (__sgi)
310 +#if (!defined (__STDC__) && defined (sparc)) || defined (__sparc__) || defined (__sparc) || defined (__sgi) || (defined (__sun) && defined (__i386))
311 +#define YYSTACK_USE_ALLOCA
312  #include <alloca.h>
313  #else /* not sparc */
314 -#if defined (MSDOS) && !defined (__TURBOC__)
315 +/* We think this test detects Watcom and Microsoft C.  */
316 +/* This used to test MSDOS, but that is a bad idea
317 +   since that symbol is in the user namespace.  */
318 +#if (defined (_MSDOS) || defined (_MSDOS_)) && !defined (__TURBOC__)
319 +#if 0 /* No need for malloc.h, which pollutes the namespace;
320 +        instead, just don't use alloca.  */
321  #include <malloc.h>
322 +#endif
323  #else /* not MSDOS, or __TURBOC__ */
324  #if defined(_AIX)
325 -#include <malloc.h>
326 +/* I don't know what this was needed for, but it pollutes the namespace.
327 +   So I turned it off.   rms, 2 May 1997.  */
328 +/* #include <malloc.h>  */
329   #pragma alloca
330 -#else /* not MSDOS, __TURBOC__, or _AIX */
331 -#ifdef __hpux
332 -#ifdef __cplusplus
333 -extern "C" {
334 -void *alloca (unsigned int);
336 -#else /* not __cplusplus */
337 -void *alloca ();
338 -#endif /* not __cplusplus */
339 +#define YYSTACK_USE_ALLOCA
340 +#else /* not MSDOS, or __TURBOC__, or _AIX */
341 +#if 0
342 +#ifdef __hpux /* haible@ilog.fr says this works for HPUX 9.05 and up,
343 +                and on HPUX 10.  Eventually we can turn this on.  */
344 +#define YYSTACK_USE_ALLOCA
345 +#define alloca __builtin_alloca
346  #endif /* __hpux */
347 +#endif
348  #endif /* not _AIX */
349  #endif /* not MSDOS, or __TURBOC__ */
350 -#endif /* not sparc.  */
351 -#endif /* not GNU C.  */
352 -#endif /* alloca not defined.  */
353 +#endif /* not sparc */
354 +#endif /* not GNU C */
355 +#endif /* alloca not defined */
356 +#endif /* YYSTACK_USE_ALLOCA not defined */
358 -/* This is the parser code that is written into each bison parser
359 -  when the %semantic_parser declaration is not specified in the grammar.
360 -  It was written by Richard Stallman by simplifying the hairy parser
361 -  used when %semantic_parser is specified.  */
362 +#ifdef YYSTACK_USE_ALLOCA
363 +#define YYSTACK_ALLOC alloca
364 +#else
365 +#define YYSTACK_ALLOC malloc
366 +#endif
368  /* Note: there must be only one dollar sign in this file.
369     It is replaced by the list of actions, each action
370 @@ -436,8 +459,8 @@
371  #define yyclearin      (yychar = YYEMPTY)
372  #define YYEMPTY                -2
373  #define YYEOF          0
374 -#define YYACCEPT       return(0)
375 -#define YYABORT        return(1)
376 +#define YYACCEPT       goto yyacceptlab
377 +#define YYABORT        goto yyabortlab
378  #define YYERROR                goto yyerrlab1
379  /* Like YYERROR except do call yyerror.
380     This remains here temporarily to ease the
381 @@ -518,12 +541,12 @@
382  #ifndef YYMAXDEPTH
383  #define YYMAXDEPTH 10000
384  #endif
386 -/* Prevent warning if -Wstrict-prototypes.  */
387 -#ifdef __GNUC__
388 -int yyparse (void);
389 -#endif
390  \f
391 +/* Define __yy_memcpy.  Note that the size argument
392 +   should be passed with type unsigned int, because that is what the non-GCC
393 +   definitions require.  With GCC, __builtin_memcpy takes an arg
394 +   of type size_t, but it can handle unsigned int.  */
396  #if __GNUC__ > 1               /* GNU C and GNU C++ define this.  */
397  #define __yy_memcpy(TO,FROM,COUNT)     __builtin_memcpy(TO,FROM,COUNT)
398  #else                          /* not GNU C or C++ */
399 @@ -535,7 +558,7 @@
400  __yy_memcpy (to, from, count)
401       char *to;
402       char *from;
403 -     int count;
404 +     unsigned int count;
406    register char *f = from;
407    register char *t = to;
408 @@ -550,10 +573,10 @@
409  /* This is the most reliable way to avoid incompatibilities
410     in available built-in functions on various systems.  */
411  static void
412 -__yy_memcpy (char *to, char *from, int count)
413 +__yy_memcpy (char *to, char *from, unsigned int count)
415 -  register char *f = from;
416    register char *t = to;
417 +  register char *f = from;
418    register int i = count;
420    while (i-- > 0)
421 @@ -563,7 +586,7 @@
422  #endif
423  #endif
424  \f
425 -#line 196 "/usr/lib/bison.simple"
426 +#line 216 "/boot/apps/GeekGadgets/share/bison.simple"
428  /* The user can define YYPARSE_PARAM as the name of an argument to be passed
429     into yyparse.  The argument should have type void *.
430 @@ -584,6 +607,15 @@
431  #define YYPARSE_PARAM_DECL
432  #endif /* not YYPARSE_PARAM */
434 +/* Prevent warning if -Wstrict-prototypes.  */
435 +#ifdef __GNUC__
436 +#ifdef YYPARSE_PARAM
437 +int yyparse (void *);
438 +#else
439 +int yyparse (void);
440 +#endif
441 +#endif
443  int
444  yyparse(YYPARSE_PARAM_ARG)
445       YYPARSE_PARAM_DECL
446 @@ -612,6 +644,7 @@
447  #endif
449    int yystacksize = YYINITDEPTH;
450 +  int yyfree_stacks = 0;
452  #ifdef YYPURE
453    int yychar;
454 @@ -696,18 +729,32 @@
455        if (yystacksize >= YYMAXDEPTH)
456         {
457           yyerror("parser stack overflow");
458 +         if (yyfree_stacks)
459 +           {
460 +             free (yyss);
461 +             free (yyvs);
462 +#ifdef YYLSP_NEEDED
463 +             free (yyls);
464 +#endif
465 +           }
466           return 2;
467         }
468        yystacksize *= 2;
469        if (yystacksize > YYMAXDEPTH)
470         yystacksize = YYMAXDEPTH;
471 -      yyss = (short *) alloca (yystacksize * sizeof (*yyssp));
472 -      __yy_memcpy ((char *)yyss, (char *)yyss1, size * sizeof (*yyssp));
473 -      yyvs = (YYSTYPE *) alloca (yystacksize * sizeof (*yyvsp));
474 -      __yy_memcpy ((char *)yyvs, (char *)yyvs1, size * sizeof (*yyvsp));
475 +#ifndef YYSTACK_USE_ALLOCA
476 +      yyfree_stacks = 1;
477 +#endif
478 +      yyss = (short *) YYSTACK_ALLOC (yystacksize * sizeof (*yyssp));
479 +      __yy_memcpy ((char *)yyss, (char *)yyss1,
480 +                  size * (unsigned int) sizeof (*yyssp));
481 +      yyvs = (YYSTYPE *) YYSTACK_ALLOC (yystacksize * sizeof (*yyvsp));
482 +      __yy_memcpy ((char *)yyvs, (char *)yyvs1,
483 +                  size * (unsigned int) sizeof (*yyvsp));
484  #ifdef YYLSP_NEEDED
485 -      yyls = (YYLTYPE *) alloca (yystacksize * sizeof (*yylsp));
486 -      __yy_memcpy ((char *)yyls, (char *)yyls1, size * sizeof (*yylsp));
487 +      yyls = (YYLTYPE *) YYSTACK_ALLOC (yystacksize * sizeof (*yylsp));
488 +      __yy_memcpy ((char *)yyls, (char *)yyls1,
489 +                  size * (unsigned int) sizeof (*yylsp));
490  #endif
491  #endif /* no yyoverflow */
493 @@ -1230,7 +1277,7 @@
494      break;}
496     /* the action file gets copied in in place of this dollarsign */
497 -#line 498 "/usr/lib/bison.simple"
498 +#line 542 "/boot/apps/GeekGadgets/share/bison.simple"
499  \f
500    yyvsp -= yylen;
501    yyssp -= yylen;
502 @@ -1425,6 +1472,30 @@
504    yystate = yyn;
505    goto yynewstate;
507 + yyacceptlab:
508 +  /* YYACCEPT comes here.  */
509 +  if (yyfree_stacks)
510 +    {
511 +      free (yyss);
512 +      free (yyvs);
513 +#ifdef YYLSP_NEEDED
514 +      free (yyls);
515 +#endif
516 +    }
517 +  return 0;
519 + yyabortlab:
520 +  /* YYABORT comes here.  */
521 +  if (yyfree_stacks)
522 +    {
523 +      free (yyss);
524 +      free (yyvs);
525 +#ifdef YYLSP_NEEDED
526 +      free (yyls);
527 +#endif
528 +    }
529 +  return 1;
531  #line 451 "getdate.y"
533 Index: lib/hostip.c
534 ===================================================================
535 RCS file: /cvs/curl/curl/lib/hostip.c,v
536 retrieving revision 1.8
537 diff -u -r1.8 hostip.c
538 --- hostip.c    1999/10/13 22:27:12     1.8
539 +++ hostip.c    1999/11/24 15:15:31
540 @@ -53,7 +53,9 @@
541  #endif
542  #include <netinet/in.h>
543  #include <netdb.h>
544 +#ifdef HAVE_ARPA_INET_H
545  #include <arpa/inet.h>
546 +#endif
547  #endif
549  #include "urldata.h"
550 Index: lib/http.c
551 ===================================================================
552 RCS file: /cvs/curl/curl/lib/http.c,v
553 retrieving revision 1.17
554 diff -u -r1.17 http.c
555 --- http.c      1999/10/30 15:43:52     1.17
556 +++ http.c      1999/11/24 15:15:31
557 @@ -66,8 +66,12 @@
558  #include <unistd.h>
559  #endif
560  #include <netdb.h>
561 +#ifdef HAVE_ARPA_INET_H
562  #include <arpa/inet.h>
563 +#endif
564 +#ifdef HAVE_NET_IF_H
565  #include <net/if.h>
566 +#endif
567  #include <sys/ioctl.h>
568  #include <signal.h>
570 Index: lib/if2ip.c
571 ===================================================================
572 RCS file: /cvs/curl/curl/lib/if2ip.c,v
573 retrieving revision 1.7
574 diff -u -r1.7 if2ip.c
575 --- if2ip.c     1999/10/13 22:27:12     1.7
576 +++ if2ip.c     1999/11/24 15:15:31
577 @@ -48,13 +48,17 @@
578  #include <unistd.h>
579  #endif
581 -#ifndef WIN32
582 +#if ! defined(WIN32) && ! defined(__BEOS__)
584  #include <sys/socket.h>
585  #include <netinet/in.h>
586 +#ifdef HAVE_ARPA_INET_H
587  #include <arpa/inet.h>
588 +#endif
589  #include <netinet/in.h>
590 +#ifdef HAVE_NET_IF_H
591  #include <net/if.h>
592 +#endif
593  #include <sys/ioctl.h>
595  /* -- if2ip() -- */
596 Index: lib/if2ip.h
597 ===================================================================
598 RCS file: /cvs/curl/curl/lib/if2ip.h,v
599 retrieving revision 1.5
600 diff -u -r1.5 if2ip.h
601 --- if2ip.h     1999/10/13 22:27:12     1.5
602 +++ if2ip.h     1999/11/24 15:15:31
603 @@ -41,7 +41,7 @@
604   ****************************************************************************/
605  #include <curl/setup.h>
607 -#ifndef WIN32
608 +#if ! defined(WIN32) && ! defined(__BEOS__)
609  char *if2ip(char *interface);
610  #else
611  #define if2ip(x) NULL
612 Index: lib/telnet.c
613 ===================================================================
614 RCS file: /cvs/curl/curl/lib/telnet.c,v
615 retrieving revision 1.9
616 diff -u -r1.9 telnet.c
617 --- telnet.c    1999/10/13 22:27:12     1.9
618 +++ telnet.c    1999/11/24 15:15:32
619 @@ -74,8 +74,12 @@
620  #include <unistd.h>
621  #endif
622  #include <netdb.h>
623 +#ifdef HAVE_ARPA_INET_H
624  #include <arpa/inet.h>
625 +#endif
626 +#ifdef HAVE_NET_IF_H
627  #include <net/if.h>
628 +#endif
629  #include <sys/ioctl.h>
630  #include <signal.h>
632 Index: lib/upload.c
633 ===================================================================
634 RCS file: /cvs/curl/curl/lib/upload.c,v
635 retrieving revision 1.9
636 diff -u -r1.9 upload.c
637 --- upload.c    1999/10/13 22:27:12     1.9
638 +++ upload.c    1999/11/24 15:15:32
639 @@ -58,6 +58,11 @@
640  #endif
642  #include <curl/curl.h>
644 +#ifdef __BEOS__
645 +#include <net/socket.h>
646 +#endif
648  #include "urldata.h"
649  #include "speedcheck.h"
650  #include "sendf.h"
651 Index: lib/url.c
652 ===================================================================
653 RCS file: /cvs/curl/curl/lib/url.c,v
654 retrieving revision 1.31
655 diff -u -r1.31 url.c
656 --- url.c       1999/11/19 07:07:10     1.31
657 +++ url.c       1999/11/24 15:15:36
658 @@ -71,8 +71,12 @@
659  #include <unistd.h>
660  #endif
661  #include <netdb.h>
662 +#ifdef HAVE_ARPA_INET_H
663  #include <arpa/inet.h>
664 +#endif
665 +#ifdef HAVE_NET_IF_H
666  #include <net/if.h>
667 +#endif
668  #include <sys/ioctl.h>
669  #include <signal.h>
671 Index: src/Makefile.am
672 ===================================================================
673 RCS file: /cvs/curl/curl/src/Makefile.am,v
674 retrieving revision 1.13
675 diff -u -r1.13 Makefile.am
676 --- Makefile.am 1999/10/13 22:50:30     1.13
677 +++ Makefile.am 1999/11/24 15:15:36
678 @@ -6,7 +6,7 @@
679  # CFLAGS = -Wall -pedantic
680  CPPFLAGS = -DGLOBURL -DCURL_SEPARATORS
682 -INCLUDES = -I../include
683 +INCLUDES = -I$(top_srcdir)/include
685  bin_PROGRAMS = curl
687 @@ -22,6 +22,6 @@
688  AUTOMAKE_OPTIONS = foreign no-dependencies
690  # This generates the hugehelp.c file
691 -hugehelp.c: ../README.curl ../curl.1 mkhelp.pl
692 +hugehelp.c: $(top_srcdir)/README.curl $(top_srcdir)/curl.1 mkhelp.pl
693         rm -f hugehelp.c
694 -       $(NROFF) -man ../curl.1 | $(PERL) mkhelp.pl ../README.curl > hugehelp.c
695 +       $(NROFF) -man $(top_srcdir)/curl.1 | $(PERL) $(top_srcdir)/src/mkhelp.pl $(top_srcdir)/README.curl > hugehelp.c