--- a/pthread_attr_getschedpolicy.c
+++ b/pthread_attr_getschedpolicy.c
@@ -39,7 +39,7 @@
 #include "sched.h"
 
 int
-pthread_attr_getschedpolicy (pthread_attr_t * attr, int *policy)
+pthread_attr_getschedpolicy (const pthread_attr_t * attr, int *policy)
 {
   if (ptw32_is_attr (attr) != 0 || policy == NULL)
     {