From: Guillem Jover Date: Sat, 14 May 2011 16:12:48 +0000 (+0200) Subject: Abort compilation if fgetln cannot be wrapped X-Git-Tag: 0.3.0~18 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=94fe901edabdfbafc602e4d194a21c5e0f372cba;p=thirdparty%2Flibbsd.git Abort compilation if fgetln cannot be wrapped --- diff --git a/src/fgetln.c b/src/fgetln.c index 9ccc1b9..d805ee1 100644 --- a/src/fgetln.c +++ b/src/fgetln.c @@ -1,6 +1,6 @@ /* * Copyright © 2005 Hector Garcia Alvarez - * Copyright © 2005, 2008, 2009 Guillem Jover + * Copyright © 2005, 2008, 2009, 2011 Guillem Jover * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions @@ -48,5 +48,7 @@ fgetln(FILE *stream, size_t *len) return line; } } +#else +#error "Function fgetln() needs to be ported." #endif