projects
/
gnulib.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fts: do not exhaust memory when processing million-entry directories
[gnulib.git]
/
lib
/
spawnattr_getschedpolicy.c
diff --git
a/lib/spawnattr_getschedpolicy.c
b/lib/spawnattr_getschedpolicy.c
index
58d44b7
..
3415ca5
100644
(file)
--- a/
lib/spawnattr_getschedpolicy.c
+++ b/
lib/spawnattr_getschedpolicy.c
@@
-1,4
+1,4
@@
-/* Copyright (C) 2000 Free Software Foundation, Inc.
+/* Copyright (C) 2000
, 2009-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
@@
-26,8
+26,11
@@
int
posix_spawnattr_getschedpolicy (const posix_spawnattr_t *attr,
int *schedpolicy)
{
posix_spawnattr_getschedpolicy (const posix_spawnattr_t *attr,
int *schedpolicy)
{
+ /* Do nothing if POSIX_SPAWN_SETSCHEDULER is unsupported. */
+#if POSIX_SPAWN_SETSCHEDULER != 0
/* Copy the scheduling policy. */
*schedpolicy = attr->_policy;
/* Copy the scheduling policy. */
*schedpolicy = attr->_policy;
+#endif
return 0;
}
return 0;
}