]> git.sur5r.net Git - openldap/blobdiff - servers/ldapd/delete.c
Update build environment:
[openldap] / servers / ldapd / delete.c
index 008f341ee3e31ff1afc83c4a145c1d154eb874b2..fbc6ac0737569945e1506e880eda518c5e526b8a 100644 (file)
 #include "portable.h"
 
 #include <stdio.h>
+/* ac/socket.h must precede ISODE #includes or p_type must be #undeffed
+ * after it is included.  (Because ISODE uses p_type as a field name, and
+ * SunOS 5.5:sys/vtype.h defines it (and ac/socket.h indirectly includes it) */
+#include <ac/socket.h>
 
 #include <quipu/commonarg.h>
 #include <quipu/attrvalue.h>
 #include <quipu/dap2.h>
 #include <quipu/dua.h>
 
-#include <ac/socket.h>
-
 #include "lber.h"
 #include "ldap.h"
 #include "common.h"
 
 #ifdef HAVE_COMPAT20
-extern int     ldap_compat;
 #define DELTAG (ldap_compat == 20 ? OLD_LDAP_RES_DELETE : LDAP_RES_DELETE)
 #else
 #define DELTAG LDAP_RES_DELETE
@@ -52,7 +53,6 @@ do_delete(
        int                             rc;
        struct ds_removeentry_arg       ra;
        static CommonArgs               common = default_common_args;
-       extern DN                       ldap_str2dn();
 
        Debug( LDAP_DEBUG_TRACE, "do_delete\n", 0, 0, 0 );