u8-istream: Include <limits.h> for definition of MB_LEN_MAX.
authorBen Pfaff <blp@cs.stanford.edu>
Sat, 9 Apr 2011 16:25:59 +0000 (09:25 -0700)
committerBen Pfaff <blp@cs.stanford.edu>
Sat, 9 Apr 2011 16:25:59 +0000 (09:25 -0700)
Problem reported by Harry Thijssen <pspp@sjpaes.nl>.
Fix suggested by John Darrington <john@darrington.wattle.id.au>.

src/libpspp/u8-istream.c

index 6d4d7707de628afdec78cf9c0b07e325b5b89307..9318d59eefcedb9a7de50d1dbbab162480a7e069 100644 (file)
@@ -22,6 +22,7 @@
 #include <errno.h>
 #include <fcntl.h>
 #include <iconv.h>
 #include <errno.h>
 #include <fcntl.h>
 #include <iconv.h>
+#include <limits.h>
 #include <stdint.h>
 #include <stdio.h>
 #include <stdlib.h>
 #include <stdint.h>
 #include <stdio.h>
 #include <stdlib.h>