summaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/main.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c
index c5943f0..1977e17 100644
--- a/src/main.c
+++ b/src/main.c
@@ -11,12 +11,15 @@
char* cmd;
int main (ARGUMENTS) {
+#ifdef CHECK_LINK
+ struct stat buf;
+#endif
+
if (argc < 1) {
return EXIT_FAILURE;
}
#ifdef CHECK_LINK
- struct stat buf;
lstat(argv[0], &buf);
if (!S_ISLNK(buf.st_mode)) {