]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
siginfo exists already as union on NetBSD, rename struct to
authorJoerg Sonnenberger <joerg.sonnenberger@gmail.com>
Tue, 20 May 2008 23:12:37 +0000 (19:12 -0400)
committerJoerg Sonnenberger <joerg.sonnenberger@gmail.com>
Tue, 20 May 2008 23:12:37 +0000 (19:12 -0400)
bsdtar_siginfo.

SVN-Revision: 81

tar/bsdtar.h
tar/siginfo.c

index 840322caa66ddee9dbe553e2c801ddc30649cfe8..bc696e0f68add8490135df6615100f1c8e45aacc 100644 (file)
@@ -97,7 +97,7 @@ struct bsdtar {
        struct matching         *matching;      /* for matching.c */
        struct security         *security;      /* for read.c */
        struct name_cache       *uname_cache;   /* for write.c */
-       struct siginfo          *siginfo;       /* for siginfo.c */
+       struct bsdtar_siginfo   *siginfo;       /* for siginfo.c */
        struct substitution     *substitution;  /* for subst.c */
 };
 
index 5e459cbd4fdb4603802839e6a33de5e426512512..b5fe3a66fc5c86f2e79734335f0edbb5f1faf92f 100644 (file)
@@ -37,7 +37,7 @@ __FBSDID("$FreeBSD: src/usr.bin/tar/siginfo.c,v 1.1 2008/05/18 06:24:47 cperciva
 /* Is there a pending SIGINFO or SIGUSR1? */
 static volatile sig_atomic_t siginfo_received = 0;
 
-struct siginfo {
+struct bsdtar_siginfo {
        /* What sort of operation are we doing? */
        char * oper;
 
@@ -72,7 +72,7 @@ siginfo_init(struct bsdtar *bsdtar)
 {
 
        /* Allocate space for internal structure. */
-       if ((bsdtar->siginfo = malloc(sizeof(struct siginfo))) == NULL)
+       if ((bsdtar->siginfo = malloc(sizeof(struct bsdtar_siginfo))) == NULL)
                bsdtar_errc(bsdtar, 1, errno, "malloc failed");
 
        /* Set the strings to NULL so that free() is safe. */