about summary refs log tree commit diff
path: root/sysdeps/generic/getpt.c
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/generic/getpt.c')
-rw-r--r--sysdeps/generic/getpt.c13
1 files changed, 12 insertions, 1 deletions
diff --git a/sysdeps/generic/getpt.c b/sysdeps/generic/getpt.c
index 4260d5fd34..2a4511c945 100644
--- a/sysdeps/generic/getpt.c
+++ b/sysdeps/generic/getpt.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 1998 Free Software Foundation, Inc.
+/* Copyright (C) 1998, 2001 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
    Contributed by Zack Weinberg <zack@rabi.phys.columbia.edu>, 1998.
 
@@ -30,5 +30,16 @@ __getpt ()
 }
 weak_alias (__getpt, getpt)
 
+/* We cannot define posix_openpt in general for BSD systems.  */
+int
+__posix_openpt (oflag)
+     int oflag;
+{
+  __set_errno (ENOSYS);
+  return -1;
+}
+weak_alias (__posix_openpt, posix_openpt)
+
 stub_warning (getpt)
+stub_warning (posix_openpt)
 #include <stub-tag.h>