]> git.saurik.com Git - apple/xnu.git/blobdiff - bsd/netat/aurp_cfg.c
xnu-792.13.8.tar.gz
[apple/xnu.git] / bsd / netat / aurp_cfg.c
index 18e40a3545c45a5e2df1793139f98f438c758b82..6a3c60f5c89e3a48fcfba29dba74e13335e9d78a 100644 (file)
@@ -1,6 +1,6 @@
 /*
- * Copyright (c) 2006 Apple Computer, Inc. All Rights Reserved.
- * 
+ * Copyright (c) 2000 Apple Computer, Inc. All rights reserved.
+ *
  * @APPLE_LICENSE_OSREFERENCE_HEADER_START@
  * 
  * This file contains Original Code and/or Modifications of Original Code 
@@ -35,6 +35,9 @@
  *
  *     File: cfg.c
  */
+#ifdef AURP_SUPPORT
+
 #define RESOLVE_DBG
 #include <sys/errno.h>
 #include <sys/types.h>
@@ -57,7 +60,6 @@
 #include <netat/at_pcb.h>
 #include <netat/aurp.h>
 
-extern atlock_t aurpgen_lock;
 static int aurp_inited = 0;
 static char aurp_minor_no[4];
 
@@ -67,10 +69,8 @@ int aurp_open(gref)
        extern void AURPcmdx();
        int i;
 
-       if (!aurp_inited) {
+       if (!aurp_inited)
                aurp_inited = 1;
-               ATLOCKINIT(aurpgen_lock);
-       }
 
        for (i=1; i < sizeof(aurp_minor_no); i++) {
                if (aurp_minor_no[i] == 0) {
@@ -106,3 +106,5 @@ int aurp_close(gref)
        gref->info = 0;
        return 0;
 }
+
+#endif  /* AURP_SUPPORT */