]> git.ipfire.org Git - thirdparty/glibc.git/blobdiff - sysdeps/stub/isfdtype.c
update from main archive
[thirdparty/glibc.git] / sysdeps / stub / isfdtype.c
index 560efd83fcf48baf7c01647da3b7c2fff54038c4..5baf9e52a15790c5f36dbf2322e83e5d7c5711b3 100644 (file)
@@ -17,13 +17,14 @@ License along with the GNU C Library; see the file COPYING.LIB.  If
 not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
 Boston, MA 02111-1307, USA.  */
 
+#include <errno.h>
 #include <sys/stat.h>
 
 
 int
 isfdtype (int fildes, int fdtype)
 {
-  errno = ENOSYS;
+  __set_errno (ENOSYS);
   return -1;
 }
 stub_warning (isfdtype)