md5, sha1, sha256, sha512: add gl_SET_CRYPTO_CHECK_DEFAULT
[gnulib.git] / lib / spawnattr_getschedparam.c
index 22664e2..2095088 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 2000, 2008 Free Software Foundation, Inc.
+/* Copyright (C) 2000, 2008-2013 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    This program is free software: you can redistribute it and/or modify
 /* Get scheduling parameters from the attribute structure.  */
 int
 posix_spawnattr_getschedparam (const posix_spawnattr_t *attr,
-                              struct sched_param *schedparam)
+                               struct sched_param *schedparam)
 {
+  /* Do nothing if POSIX_SPAWN_SETSCHEDPARAM is unsupported.  */
+#if POSIX_SPAWN_SETSCHEDPARAM != 0
   /* Copy the scheduling parameters.  */
   *schedparam = attr->_sp;
+#endif
 
   return 0;
 }