diff -uprN ltp-full-20081130/testcases/pounder21/src/ramsnake/Makefile ltp-full-20081031/testcases/pounder21/src/ramsnake/Makefile
--- ltp-full-20081130/testcases/pounder21/src/ramsnake/Makefile	2006-01-26 14:16:42.000000000 -0800
+++ ltp-full-20081031/testcases/pounder21/src/ramsnake/Makefile	2008-12-18 00:14:24.000000000 -0800
@@ -18,7 +18,7 @@
 # 02111-1307, USA.
 
 CC=gcc
-CFLAGS += -O3 -Wall
+CFLAGS += -O3 -Wall 
 bins = snake.exe
 
 all: ${bins}
diff -uprN ltp-full-20081130/testcases/pounder21/src/ramsnake/snake.c ltp-full-20081031/testcases/pounder21/src/ramsnake/snake.c
--- ltp-full-20081130/testcases/pounder21/src/ramsnake/snake.c	2006-06-21 21:28:33.000000000 -0700
+++ ltp-full-20081031/testcases/pounder21/src/ramsnake/snake.c	2008-12-18 00:14:24.000000000 -0800
@@ -1,3 +1,4 @@
+
 /*
  * Cheesy program to create a "graph" of nodes, spawn threads and 
  * walk the graph.
@@ -21,7 +22,7 @@
  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
  * 02111-1307, USA.
  */
-
+#define _GNU_SOURCE
 #include <sys/mman.h>
 #include <malloc.h>
 #include <sys/sysinfo.h>
@@ -29,13 +30,14 @@
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
-#include <sched.h>
 #include <fcntl.h>
 #include <unistd.h>
 #include <signal.h>
 #include <sys/time.h>
 #include <strings.h>
 #include <time.h>
+//#define __USE_GNU
+#include <sched.h>
 
 static int seed_random(void);
 static void populate_graph(void *region, unsigned long long node_count);
@@ -235,9 +237,9 @@ and %d seconds between adding children.\
 		if (!fork()) {
 #ifdef __cpu_set_t_defined
 			if (affinity) {
-				__CPU_ZERO(&my_cpu_mask);
-				__CPU_SET(c, &my_cpu_mask);
-				if (0 != sched_setaffinity(0, &my_cpu_mask)) {
+				CPU_ZERO(&my_cpu_mask);
+				CPU_SET(c, &my_cpu_mask);
+				if (0 != sched_setaffinity(0,sizeof(cpu_set_t), &my_cpu_mask)) {
 					perror("sched_setaffinity");
 				}
 			}
@@ -253,9 +255,9 @@ and %d seconds between adding children.\
 	if (is_parent) {
 #ifdef __cpu_set_t_defined
 		if (affinity) {
-			__CPU_ZERO(&my_cpu_mask);
-			__CPU_SET(0, &my_cpu_mask);
-			if (0 != sched_setaffinity(0, &my_cpu_mask)) {
+			CPU_ZERO(&my_cpu_mask);
+			CPU_SET(0, &my_cpu_mask);
+			if (0 != sched_setaffinity(0,sizeof(cpu_set_t), &my_cpu_mask)) {
 				perror("sched_setaffinity");
 			}
 		}
