summaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authorTyler Murphy <tylerm@tylerm.dev>2023-05-04 16:10:37 -0400
committerTyler Murphy <tylerm@tylerm.dev>2023-05-04 16:10:37 -0400
commitb1364be7e271c5a080e29efcda209a190a82d6d9 (patch)
treefc64d1546e59b5ed1c2c204612b6181bc401c27f /src/main.c
parentgrep (diff)
downloadlazysphere-b1364be7e271c5a080e29efcda209a190a82d6d9.tar.gz
lazysphere-b1364be7e271c5a080e29efcda209a190a82d6d9.tar.bz2
lazysphere-b1364be7e271c5a080e29efcda209a190a82d6d9.zip
ansii c
Diffstat (limited to 'src/main.c')
-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)) {