delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2001/01/20/04:27:17

From: Andris Pavenis <pavenis AT latnet DOT lv>
To: djgpp-workers AT delorie DOT com
Subject: Missing prototypes for memalign() and valloc()
Date: Sat, 20 Jan 2001 11:26:35 +0200
X-Mailer: KMail [version 1.2]
MIME-Version: 1.0
Message-Id: <01012011263500.18493@hal>
Reply-To: djgpp-workers AT delorie DOT com

Tried to build current CVS version (as usually using cross-compiler under 
Linux). I'm getting failure due to missing prototypes for memalign() 
and valloc(). Adding prototypes to stdlib.h fixes build. 

--- include/stdlib.h~1	Wed Dec  6 07:00:36 2000
+++ include/stdlib.h	Sat Jan 20 11:25:04 2001
@@ -113,6 +113,8 @@
 long long	strtoll(const char *_s, char **_endptr, int _base);
 unsigned long long strtoull(const char *_s, char **_endptr, int _base);
 void		swab(const void *from, void *to, int nbytes);
+void           *memalign (size_t amt, size_t align);
+void           *valloc (size_t amt);
 
 #ifndef alloca
 #define alloca __builtin_alloca

Andris

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019