parlay

yet another gentoo overlay
git clone https://git.parazyd.org/parlay
Log | Files | Refs | README

linux.patch (777B)


      1 diff --git a/Makefile b/Makefile
      2 index 3e9eb12..ab5739c 100644
      3 --- a/Makefile
      4 +++ b/Makefile
      5 @@ -5,10 +5,10 @@ VERSION = 0.3
      6  
      7  PREFIX = /usr/local
      8  BINDIR = ${PREFIX}/bin
      9 -MANDIR = ${PREFIX}/man/man1
     10 +MANDIR = ${PREFIX}/share/man/man1
     11  
     12 -HURL_CFLAGS = ${CFLAGS}
     13 -HURL_LDFLAGS = -ltls ${LDFLAGS}
     14 +HURL_CFLAGS = ${CFLAGS} -D_DEFAULT_SOURCE
     15 +HURL_LDFLAGS = -ltls ${LDFLAGS} -lbsd
     16  
     17  SRC = hurl.c
     18  OBJ = ${SRC:.c=.o}
     19 diff --git a/hurl.c b/hurl.c
     20 index 4e0f9ab..7cbb4a6 100644
     21 --- a/hurl.c
     22 +++ b/hurl.c
     23 @@ -1,4 +1,5 @@
     24  #include <sys/socket.h>
     25 +#include <sys/types.h>
     26  #include <sys/time.h>
     27  
     28  #include <ctype.h>
     29 @@ -10,7 +11,7 @@
     30  #include <stdio.h>
     31  #include <stdint.h>
     32  #include <stdlib.h>
     33 -#include <string.h>
     34 +#include <bsd/string.h>
     35  #include <time.h>
     36  #include <unistd.h>
     37