projects
/
gnulib.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
md5, sha1, sha256, sha512: add gl_SET_CRYPTO_CHECK_DEFAULT
[gnulib.git]
/
lib
/
spawnattr_setschedparam.c
diff --git
a/lib/spawnattr_setschedparam.c
b/lib/spawnattr_setschedparam.c
index
4e832c7
..
ce0b36f
100644
(file)
--- a/
lib/spawnattr_setschedparam.c
+++ b/
lib/spawnattr_setschedparam.c
@@
-1,4
+1,4
@@
-/* Copyright (C) 2000, 2009
, 2010
Free Software Foundation, Inc.
+/* Copyright (C) 2000, 2009
-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
This file is part of the GNU C Library.
This program is free software: you can redistribute it and/or modify
@@
-24,8
+24,11
@@
int
posix_spawnattr_setschedparam (posix_spawnattr_t *attr,
const struct sched_param *schedparam)
{
posix_spawnattr_setschedparam (posix_spawnattr_t *attr,
const struct sched_param *schedparam)
{
+ /* Do nothing if POSIX_SPAWN_SETSCHEDPARAM is unsupported. */
+#if POSIX_SPAWN_SETSCHEDPARAM != 0
/* Store the scheduling parameters. */
attr->_sp = *schedparam;
/* Store the scheduling parameters. */
attr->_sp = *schedparam;
+#endif
return 0;
}
return 0;
}