r3447: more include/system/XXX.h include files
[jelmer/samba4-debian.git] / source / lib / registry / reg_backend_w95 / reg_backend_w95.c
index 2184a8855dadb849e0f5ca54e6cb1245237200c4..448af66eec8ac24ae7263bf7cb5d42faa42cef6b 100644 (file)
@@ -20,6 +20,7 @@
    Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.  */
 
 #include "includes.h"
+#include "system/shmem.h"
 
 /**
  * The registry starts with a header that contains pointers to 
@@ -300,15 +301,6 @@ static WERROR w95_get_subkey_by_index (TALLOC_CTX *mem_ctx, struct registry_key
        return WERR_NO_MORE_ITEMS;
 }
 
-static WERROR w95_close_reg(struct registry_hive *h)
-{
-       CREG *creg = h->backend_data;
-       if (creg->base) munmap(creg->base, creg->sbuf.st_size);
-       creg->base = NULL;
-    close(creg->fd);
-       return WERR_OK;
-}
-
 static WERROR w95_num_values(struct registry_key *k, int *count)
 {
        RGKN_KEY *rgkn_key = k->backend_data;