]> git.armaanb.net Git - opendoas.git/blobdiff - libopenbsd/openbsd.h
use config.h and link objects instead of libopenbsd.a
[opendoas.git] / libopenbsd / openbsd.h
index da420de7fdd63832973f891cc053ab2cd706b178..1572b9c1c42f82517c7e4a6ddc599b8ce15e3bde 100644 (file)
@@ -14,9 +14,6 @@
 
 /* API definitions lifted from OpenBSD src/include */
 
-/* pwd.h */
-#define _PW_NAME_LEN 63
-
 /* stdlib.h */
 #ifndef HAVE_REALLOCARRAY
 void * reallocarray(void *optr, size_t nmemb, size_t size);
@@ -64,4 +61,11 @@ const char * getprogname(void);
 void setprogname(const char *progname);
 #endif /* !HAVE_SETPROGNAME */
 
+#ifndef HAVE_SETRESGID
+int    setresgid(gid_t, gid_t, gid_t);
+#endif
+#ifndef HAVE_SETRESUID
+int    setresuid(uid_t, uid_t, uid_t);
+#endif
+
 #endif /* _LIB_OPENBSD_H_ */