X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Fspawnattr_getschedparam.c;h=631ec0c19086f9d31deb5e0dae49e11bf3b845e9;hb=5f1cfee9e825db39e75bc2388856fb274d395e20;hp=29af75c607cd7f2fc91a492806768ae0979f21ed;hpb=441aa3044f43e5572f58c354f01e6bc070acd5c7;p=gnulib.git diff --git a/lib/spawnattr_getschedparam.c b/lib/spawnattr_getschedparam.c index 29af75c60..631ec0c19 100644 --- a/lib/spawnattr_getschedparam.c +++ b/lib/spawnattr_getschedparam.c @@ -1,4 +1,4 @@ -/* Copyright (C) 2000, 2008 Free Software Foundation, Inc. +/* Copyright (C) 2000, 2008-2010 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 @@ -24,8 +24,11 @@ int 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; +#endif return 0; }