a8ecfdafec
fix the build with gcc 4.5.
17 lines
369 B
Text
17 lines
369 B
Text
$NetBSD: patch-lite_h,v 1.1 2012/05/10 02:04:36 dholland Exp $
|
|
|
|
Use standard headers.
|
|
|
|
--- lite.h~ 2004-05-29 23:00:08.000000000 +0000
|
|
+++ lite.h
|
|
@@ -23,7 +23,9 @@
|
|
#include "config.h"
|
|
#endif
|
|
|
|
-#include <stdlib.h>
|
|
+#include <cstring>
|
|
+#include <cstdlib>
|
|
+
|
|
char * newstrcpy(char *&dest, const char *src);
|
|
inline void safefree(char *&p){
|
|
if (p){free(p);p=NULL;}
|