openbsd-ports/x11/wmmenu/patches/patch-utils_c

20 lines
464 B
Plaintext
Raw Normal View History

$OpenBSD: patch-utils_c,v 1.1 2002/05/15 08:33:53 wilfried Exp $
--- utils.c.orig Wed Apr 10 20:57:56 2002
+++ utils.c Wed May 15 10:26:50 2002
@@ -1,6 +1,3 @@
-#define _POSIX_SOURCE
-#define _POSIX_C_SOURCE 199309L
-
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
@@ -16,7 +13,7 @@
static char * ReadAll (FILE * f, int offset)
{
char buf [10*1024] ;
- int iRead, nRead ;
+ size_t iRead, nRead ;
char * ret ;
clearerr (f) ;