now gpt works under macosx.

This commit is contained in:
christos 2014-09-30 18:00:28 +00:00
parent 21c34dbb1d
commit 92e39ddd46
2 changed files with 9 additions and 3 deletions

View File

@ -1,12 +1,13 @@
# $NetBSD: Makefile,v 1.2 2014/09/29 21:05:11 christos Exp $
# $NetBSD: Makefile,v 1.3 2014/09/30 18:00:28 christos Exp $
HOSTPROGNAME= nbgpt
HOST_SRCDIR= sbin/gpt
HOST_CPPFLAGS+= -I${.CURDIR}
HOST_SRCS+= opendisk.c
HOST_SRCS+= opendisk.c dehumanize_number.c
NOMAN= # defined
.PATH.c: ${.CURDIR}/../../lib/libutil
.PATH.c: ${.CURDIR}/../../lib/libutil ${.CURDIR}/../../lib/libc/gen
.include "${.CURDIR}/../Makefile.nbincludes"
.include "${.CURDIR}/../Makefile.host"

5
tools/gpt/namespace.h Normal file
View File

@ -0,0 +1,5 @@
#include <stdint.h>
__BEGIN_DECLS
extern int dehumanize_number(const char *, int64_t *);
__END_DECLS