Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@ jobs:
- name: apt-update
run: sudo apt-get update
- name: apt
run: sudo apt-get install mesa-common-dev libxi-dev libglx-dev libxcursor-dev libxrandr-dev
run: sudo apt-get install mesa-common-dev libxi-dev libglx-dev libxcursor-dev libxrandr-dev libasound2-dev
- name: make
run: make
6 changes: 6 additions & 0 deletions include/PureDOOM.h
Original file line number Diff line number Diff line change
Expand Up @@ -7140,8 +7140,14 @@ void doom_gettime_impl(int* sec, int* usec)
*usec = (int)(system_time.wMilliseconds * 1000);
#else
struct timeval tp;

#ifdef __linux__
gettimeofday(&tp, NULL);
#else
struct timezone tzp;
gettimeofday(&tp, &tzp);
#endif

*sec = tp.tv_sec;
*usec = tp.tv_usec;
#endif
Expand Down
1 change: 1 addition & 0 deletions rgfw_example.c
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,7 @@ void send_midi_msg(uint32_t midi_msg)
}
}
#elif defined(__linux__)
#define _POSIX_C_SOURCE
#include <alsa/asoundlib.h>
static snd_rawmidi_t* midi_out_handle = NULL;

Expand Down
Loading