diff -ur nanocurses-1.5.2.orig/cbits/utils.c nanocurses-1.5.2/cbits/utils.c --- nanocurses-1.5.2.orig/cbits/utils.c 2008-05-18 18:09:23.000000000 -0300 +++ nanocurses-1.5.2/cbits/utils.c 2011-07-10 11:23:02.082418889 -0300 @@ -38,7 +38,7 @@ } /* sometimes we write to the wrong spot after a refresh */ -int getline(char *buf, FILE *hdl) { +int mygetline(char *buf, FILE *hdl) { char *p; int c; @@ -52,7 +52,7 @@ while (c != '\n') c = getc(hdl); - return getline(buf,hdl); /* read another line */ + return mygetline(buf,hdl); /* read another line */ /* normal packet */ } else { @@ -60,7 +60,7 @@ p = fgets(buf+1, BUFLEN-1, hdl); /* read rest of line */ if (p == NULL) { - // perror("getline failed\n"); + // perror("mygetline failed\n"); return (-1); } buf[0] = c; /* drop the '@' */ diff -ur nanocurses-1.5.2.orig/cbits/utils.h nanocurses-1.5.2/cbits/utils.h --- nanocurses-1.5.2.orig/cbits/utils.h 2008-05-18 18:09:23.000000000 -0300 +++ nanocurses-1.5.2/cbits/utils.h 2011-07-10 11:22:18.180418821 -0300 @@ -12,5 +12,5 @@ /* packed string IO */ FILE *openfd(int fd); -int getline(char *buf, FILE *hdl); +int mygetline(char *buf, FILE *hdl); void forcenext(void); diff -ur nanocurses-1.5.2.orig/nanocurses.cabal nanocurses-1.5.2/nanocurses.cabal --- nanocurses-1.5.2.orig/nanocurses.cabal 2008-05-18 18:09:23.000000000 -0300 +++ nanocurses-1.5.2/nanocurses.cabal 2011-07-10 11:21:43.256418788 -0300 @@ -21,7 +21,7 @@ (It does not differ significantly from Hmp3's Curses binding, as the Curses.hsc in Nanocurses is essentially extracted from Hmp3.) -build-type: Simple +build-type: Configure build-depends: base>3, unix, bytestring tested-with: GHC==6.8.2