X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Fspawnattr_getschedparam.c;h=631ec0c19086f9d31deb5e0dae49e11bf3b845e9;hb=b48afd89ec9be56156d6e2bebfdf457c778fe5c3;hp=40a9858d43633a7c0bfae73a2d8835bbd0e82817;hpb=3030c5b5e0a5199e16b05927da72c43c42f211c3;p=gnulib.git diff --git a/lib/spawnattr_getschedparam.c b/lib/spawnattr_getschedparam.c index 40a9858d4..631ec0c19 100644 --- 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-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; }