]> arthur.barton.de Git - netatalk.git/blobdiff - include/atalk/compat.h
Patches for OpenBSD
[netatalk.git] / include / atalk / compat.h
index dba461481f6155f5f464ee677f9bc2a6a6d5c670..429955349f74c9ca2572357c68851f5f359c1167 100644 (file)
@@ -6,8 +6,6 @@
  * are checks for EINTR everywhere. 
  */
 
-#include <config.h>
-
 #include <sys/cdefs.h>
 #include <signal.h>
 
@@ -23,8 +21,8 @@
 #include <netinet/in.h>
 #include <arpa/inet.h>
 
-extern int flock __P((int, int));
-extern int inet_aton __P((const char *, struct in_addr *));
+extern int flock (int, int);
+extern int inet_aton (const char *, struct in_addr *);
 #else /* __svr4__ */
 
 #ifdef sun
@@ -68,8 +66,8 @@ extern int inet_aton __P((const char *, struct in_addr *));
 #define SA_RESTART     0
 #endif
 
-extern char *strdup __P((const char *));
-extern int inet_aton __P((const char *, struct in_addr *));
+extern char *strdup (const char *);
+extern int inet_aton (const char *, struct in_addr *);
 #endif /* ultrix */
 
 #ifdef BSD4_4
@@ -79,7 +77,7 @@ extern int inet_aton __P((const char *, struct in_addr *));
 #endif /* BSD4_4 */
 
 #if defined(ultrix) || defined(_IBMR2) || defined(NEED_GETUSERSHELL)
-extern char *getusershell __P((void));
+extern char *getusershell (void);
 #endif
 
 #if !defined(HAVE_SNPRINTF) || !defined(HAVE_VSNPRINTF)
@@ -94,3 +92,14 @@ int snprintf (char *str,size_t count,const char *fmt,...);
 #ifndef HAVE_VSNPRINTF
 int vsnprintf(char *str, size_t count, const char *fmt, va_list args);
 #endif
+
+/* OpenBSD */
+#if defined(__OpenBSD__) && !defined(ENOTSUP)
+#define ENOTSUP EOPNOTSUPP
+#endif
+
+#if !defined(HAVE_PSELECT) || defined(__OpenBSD__)
+extern int pselect(int, fd_set * restrict, fd_set * restrict,
+                   fd_set * restrict, const struct timespec * restrict,
+                   const sigset_t * restrict);
+#endif