public inbox for ltp@lists.linux.it
 help / color / mirror / Atom feed
* [LTP] problems building mallopt01.c for uClinux
@ 2010-08-17 18:30 David Marlin
  2010-08-17 19:47 ` Garrett Cooper
  0 siblings, 1 reply; 5+ messages in thread
From: David Marlin @ 2010-08-17 18:30 UTC (permalink / raw)
  To: LTP list

[-- Attachment #1: Type: text/plain, Size: 298 bytes --]


The testcase mallopt01 skips performing the test when UCLINUX=1, but the
mallinfo structure is defined outside the #if !defined(UCLINUX) block.

Attached is a patch to move the mallinfo structure definition inside the
#if !defined(UCLINUX) block.


Signed-off-by: d.marlin <dmarlin@redhat.com>




[-- Attachment #2: mallopt01.c.patch --]
[-- Type: text/x-patch, Size: 497 bytes --]

--- testcases/kernel/syscalls/mallopt/mallopt01.c.orig2	2010-08-13 10:28:12.318231000 -0500
+++ testcases/kernel/syscalls/mallopt/mallopt01.c	2010-08-13 10:44:06.279068760 -0500
@@ -56,10 +56,10 @@
 extern int Tst_COUNT;		/* Test Case counter for tst_routines */
 
 void printinfo();
-/*****	*	*	*****/
-struct mallinfo info;
 
 #if !defined(UCLINUX)
+/*****	*	*	*****/
+struct mallinfo info;
 
 /*--------------------------------------------------------------*/
 int main(int argc, char *argv[])

[-- Attachment #3: Type: text/plain, Size: 224 bytes --]

------------------------------------------------------------------------------
This SF.net email is sponsored by 

Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev 

[-- Attachment #4: Type: text/plain, Size: 155 bytes --]

_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2010-08-17 20:09 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-08-17 18:30 [LTP] problems building mallopt01.c for uClinux David Marlin
2010-08-17 19:47 ` Garrett Cooper
2010-08-17 20:00   ` Mike Frysinger
2010-08-17 20:05     ` Garrett Cooper
2010-08-17 20:09       ` Mike Frysinger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox