Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Kartatz committed Oct 5, 2024
1 parent 56c069e commit 2890425
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 10 deletions.
7 changes: 1 addition & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -502,7 +502,7 @@ jobs:
-DKAI_ENABLE_LTO="${KAI_ENABLE_LTO}" \
-DCMAKE_TOOLCHAIN_FILE="${source_directory}/.github/workflows/cmake_toolchains/${target}.cmake" \
-DCMAKE_INSTALL_PREFIX="${install_prefix}" \
-DCMAKE_BUILD_TYPE='MinSizeRel'
-DCMAKE_BUILD_TYPE='MinSizeRel' 1>/dev/null
echo "- Building dependencies"
Expand All @@ -515,11 +515,6 @@ jobs:
echo "- Building main project"
cmake --build "${build_directory}" -- --jobs 1>/dev/null
if [ "${?}" != '0' ]; then
echo "- Building for ${target} failed"
fi
cmake --install "${build_directory}" --strip 1>/dev/null
chmod '644' "${install_prefix}/lib/libav"* || true
Expand Down
8 changes: 4 additions & 4 deletions src/os.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@
#include <sysinfoapi.h>
#endif

#if defined(__APPLE__) || defined(__FreeBSD__) || defined(__NetBSD__) || defined(__DragonFly__) || defined(__OpenBSD__)
#include <sys/sysctl.h>
#endif

#if defined(__OpenBSD__) || defined(__NetBSD__)
#include <sys/param.h>
#endif

#if defined(__APPLE__) || defined(__FreeBSD__) || defined(__NetBSD__) || defined(__DragonFly__) || defined(__OpenBSD__)
#include <sys/sysctl.h>
#endif

#if defined(__HAIKU__)
#include <OS.h>
#endif
Expand Down
4 changes: 4 additions & 0 deletions src/os.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
#if !defined(OS_H)
#define OS_H

#if !defined(_WIN32)
#include <sys/types.h>
#endif

#if !defined(__HAIKU__)
int is_administrator(void);
#endif
Expand Down

0 comments on commit 2890425

Please sign in to comment.