summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuillem Jover <guillem@hadrons.org>2011-05-14 18:12:48 +0200
committerGuillem Jover <guillem@hadrons.org>2011-05-16 13:23:18 +0200
commit94fe901edabdfbafc602e4d194a21c5e0f372cba (patch)
treeb0c4f6878de5be91b9842b315457d09f2ce3d51d
parent28585a58bdd0308c516d2b1caee76977283942da (diff)
downloadlibbsd-94fe901edabdfbafc602e4d194a21c5e0f372cba.tar.gz
Abort compilation if fgetln cannot be wrapped
-rw-r--r--src/fgetln.c4
1 files changed, 3 insertions, 1 deletions
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