Skip to content

Commit

Permalink
tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
billywhizz committed Jun 4, 2024
1 parent ed9e96a commit b993a9e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lib/raylib/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ async function build () {
chdir, mkdir, S_IRWXU, S_IRWXG, S_IROTH, S_IXOTH, readFile
} = core
if (obj.some(o => !isFile(o))) {
if (!isDir('deps/raylib')) {
if (!isFile('deps/raylib/configure')) {
mkdir('deps', S_IRWXU | S_IRWXG | S_IROTH | S_IXOTH)
assert(chdir('deps') === 0)
if (!isFile('raylib.tar.gz')) {
Expand All @@ -21,8 +21,7 @@ async function build () {
}
const bytes = readFile('raylib.tar.gz')
const dir_name = untar(inflate(bytes))
const cwd = lo.getcwd()
assert(lo.core.rename(`${cwd}/${dir_name}`, `${cwd}/raylib`) === 0)
assert(lo.core.rename(dir_name, 'raylib') === 0)
assert(chdir('../') === 0)
}
assert(chdir('deps/raylib') === 0)
Expand Down
3 changes: 3 additions & 0 deletions lib/system/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,9 @@ const includes = [
]

const linux = {
constants: {
EFD_NONBLOCK: 'i32', EFD_CLOEXEC: 'i32', EFD_SEMAPHORE: 'i32'
},
includes: [
'sys/eventfd.h',
'sys/timerfd.h',
Expand Down

0 comments on commit b993a9e

Please sign in to comment.