Closed b4 closed 7 years ago
Sorry, I haven't done much work to merge in changes from everyone, so this isn't expected to work.
I merged in some changes to make it work in BSDs. It should probably be better now. But there's nothing specifically for OS X... I mean macOS.
Builds now.
make supdup cc -g -o supdup -DTERMCAP supdup.c -ltermcap supdup.c:185:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] putch (c) ^ supdup.c:190:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ supdup.c:193:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] put_newline () ^ supdup.c:201:5: warning: implicit declaration of function 'tputs' is invalid in C99 [-Wimplicit-function-declaration] tputs (fresh_line, 1, putch); ^ supdup.c:215:3: warning: implicit declaration of function 'ttyoflush' is invalid in C99 [-Wimplicit-function-declaration] ttyoflush (); ^ supdup.c:216:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ supdup.c:248:30: warning: implicit declaration of function 'inet_addr' is invalid in C99 [-Wimplicit-function-declaration] tsin.sin_addr.s_addr = inet_addr (name); ^ supdup.c:256:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] main (argc, argv) ^ supdup.c:264:7: warning: implicitly declaring library function 'exit' with type 'void (int) attribute((noreturn))' [-Wimplicit-function-declaration] exit (1); ^ supdup.c:264:7: note: include the header or explicitly provide a declaration for 'exit'
supdup.c:326:14: warning: using the result of an assignment as a condition without parentheses [-Wparentheses]
if (cp = strchr(line, '\n'))