Fix compilation issues in sem_test.
[bertos.git] / bertos / kern / sem_test.c
index 8f88ced309f6b8d8f6d931b630f8c0b7e82e9bf1..e304dc37b8cf904039cf9cf68e935710a08212c4 100644 (file)
@@ -57,6 +57,8 @@
  * $test$: echo "#define CONFIG_KERN 1" >> $cfgdir/cfg_proc.h
  * $test$: echo  "#undef CONFIG_KERN_PRI" >> $cfgdir/cfg_proc.h
  * $test$: echo "#define CONFIG_KERN_PRI 1" >> $cfgdir/cfg_proc.h
+ * $test$: echo  "#undef CONFIG_KERN_PRI_INHERIT" >> $cfgdir/cfg_proc.h
+ * $test$: echo "#define CONFIG_KERN_PRI_INHERIT 1" >> $cfgdir/cfg_proc.h
  * $test$: cp bertos/cfg/cfg_sem.h $cfgdir/
  * $test$: echo  "#undef CONFIG_KERN_SEMAPHORES" >> $cfgdir/cfg_sem.h
  * $test$: echo "#define CONFIG_KERN_SEMAPHORES 1" >> $cfgdir/cfg_sem.h
@@ -150,7 +152,7 @@ Semaphore s1, s2;
 unsigned int loops = 0;        // For counting iterations
 int finishing_time[8];
 
-enum ProcType {NONE, S1, S2, S1S2};
+typedef enum ProcType {NONE, S1, S2, S1S2} ProcType;
 /*
  * Macros for the processes of the priority inversion test.
  */