XBPS can now be built on NetBSD (and probably any other BSD variant).

This commit is contained in:
Juan RP
2012-12-06 12:58:17 +01:00
parent d6a65a5a55
commit 2c1e4e502d
15 changed files with 145 additions and 158 deletions

View File

@ -29,9 +29,6 @@
* POSSIBILITY OF SUCH DAMAGE.
*/
#include <prop/prop_object.h>
#include "prop_object_impl.h"
#include <sys/mman.h>
#include <sys/stat.h>
#include <errno.h>
@ -40,6 +37,9 @@
#include <unistd.h>
#include <zlib.h>
#include <prop/prop_object.h>
#include "prop_object_impl.h"
/*
* _prop_object_init --
@ -812,7 +812,10 @@ _prop_object_externalize_write_file(const char *fname, const char *xml,
size_t len, bool do_compress)
{
gzFile gzf = NULL;
char tname[PATH_MAX], *otname;
char tname[PATH_MAX];
#ifndef HAVE_STRLCAT
char *otname;
#endif
int fd;
int save_errno;
mode_t myumask;