diff --git a/frontend/src/main.c b/frontend/src/main.c index bef3510..50b4588 100644 --- a/frontend/src/main.c +++ b/frontend/src/main.c @@ -3,7 +3,11 @@ /* This work has been released under the CC0 1.0 Universal license! */ /******************************************************************************/ -#define _CRT_SECURE_NO_WARNINGS 1 +#ifdef _WIN32 +# define _CRT_SECURE_NO_WARNINGS 1 +#else +# define _GNU_SOURCE 1 +#endif #include #include "utils.h" diff --git a/mk-profiled.sh b/mk-profiled.sh index cf6cf6f..2ef1138 100755 --- a/mk-profiled.sh +++ b/mk-profiled.sh @@ -30,7 +30,8 @@ printf "\033[1;36m\n------------------------------------------------------------ printf "\033[1;36mProfiling\n" printf "\033[1;36m------------------------------------------------------------------------------\033[0m\n\n" -dd bs=1024 count=102400 status=none < ${RANDOM_SOURCE} > /tmp/${TMP_NAME}.dat +dd bs=1024 count=102400 < ${RANDOM_SOURCE} > /tmp/${TMP_NAME}.dat +printf "\n" ./frontend/bin/slunkcrypt${SUFFIX} --self-test ./frontend/bin/slunkcrypt${SUFFIX} --encrypt 'q4cmK7FEK7@v' /tmp/${TMP_NAME}.dat /tmp/${TMP_NAME}.enc