aboutsummaryrefslogtreecommitdiff
path: root/ln.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--ln.c (renamed from core/ln.c)12
1 files changed, 8 insertions, 4 deletions
diff --git a/core/ln.c b/ln.c
index e2ce310..f9b2e19 100644
--- a/core/ln.c
+++ b/ln.c
@@ -7,15 +7,19 @@
#include <errno.h>
#include <string.h>
-#define REQ_PRINT_USAGE /* Require print_usage() from ../common/common.h */
-#define REQ_ERRPRINT /* Require errprint() from ../common/common.h */
+#define REQ_PRINT_USAGE /* Require print_usage() from common.h */
+#define REQ_ERRPRINT /* Require errprint() from common.h */
#define DESCRIPTION "Link files."
#define OPERANDS "[-fs] [-P|-L] source_file target_file"
-#include "../common/common.h"
+#include "common.h"
int getopt(int argc, char *const argv[], const char *optstring);
-int main(int argc, char *const argv[]) {
+#ifdef FASESBOX
+int ln_main(int argc, char *argv[]) {
+#else
+int main(int argc, char *argv[]) {
+#endif
int argument;
char param[256], *buffer = NULL, *argv0 = strdup(argv[0]);