projects
/
gnulib.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
sigpipe-die: use stdnoreturn.h
[gnulib.git]
/
lib
/
spawnattr_getschedparam.c
diff --git
a/lib/spawnattr_getschedparam.c
b/lib/spawnattr_getschedparam.c
index
40a9858
..
69d7014
100644
(file)
--- a/
lib/spawnattr_getschedparam.c
+++ b/
lib/spawnattr_getschedparam.c
@@
-1,4
+1,4
@@
-/* Copyright (C) 2000, 2008
, 2009
Free Software Foundation, Inc.
+/* Copyright (C) 2000, 2008
-2011
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_getschedparam (const posix_spawnattr_t *attr,
struct sched_param *schedparam)
{
posix_spawnattr_getschedparam (const posix_spawnattr_t *attr,
struct sched_param *schedparam)
{
+ /* Do nothing if POSIX_SPAWN_SETSCHEDPARAM is unsupported. */
+#if POSIX_SPAWN_SETSCHEDPARAM != 0
/* Copy the scheduling parameters. */
*schedparam = attr->_sp;
/* Copy the scheduling parameters. */
*schedparam = attr->_sp;
+#endif
return 0;
}
return 0;
}