Fix build --without-gpl

This commit is contained in:
pancake 2019-07-10 19:45:34 +02:00
parent 11e81e27a4
commit 9f4f802cec
2 changed files with 9 additions and 1 deletions

View File

@ -3,6 +3,8 @@
#include <r_fs.h>
#include "grubfs.h"
#if WITH_GPL
static RFSFile* FSP(_open)(RFSRoot *root, const char *path, bool create) {
RFSFile *file = r_fs_file_new (root, path);
GrubFS *gfs = grubfs_new (&FSIPTR, &root->iob);
@ -92,3 +94,9 @@ RFSPlugin FSS(r_fs_plugin) = {
.mount = FSP(_mount),
.umount = FSP(_umount),
};
#else
RFSPlugin FSS(r_fs_plugin) = {
.name = FSNAME,
.desc = FSDESC,
};
#endif

View File

@ -67,7 +67,7 @@ cp -f plugins.ios.cfg plugins.cfg
${CFGFLAGS} \
--with-ostype=darwin --with-libr \
--without-gpl --without-fork --without-libuv \
--with-compiler=ios-sdk \
--with-compiler=ios-sdk --with-capstone5 \
--target=arm-unknown-darwin
fi