From d3bf2809934e0461b65bf663fb38f023b6c0977c Mon Sep 17 00:00:00 2001 From: Niels Martin Hansen Date: Mon, 7 May 2007 14:22:18 +0000 Subject: [PATCH] Building on POSIX seems fixed again Originally committed to SVN as r1166. --- aegisub/Makefile.am | 6 ++---- aegisub/audio_player_alsa.cpp | 1 + aegisub/auto4_lua_scriptreader.h | 4 +++- aegisub/factory.h | 2 ++ 4 files changed, 8 insertions(+), 5 deletions(-) diff --git a/aegisub/Makefile.am b/aegisub/Makefile.am index 179b46852..730413b62 100644 --- a/aegisub/Makefile.am +++ b/aegisub/Makefile.am @@ -4,8 +4,6 @@ EXTRA_DIST = res.rc $(srcdir)/*.h beautify SUFFIXES = .c .cpp .rc -## Most of these are just to catch extra sources for tarball. -## I'm not sure if the build subdir should be included here...? --jfs SUBDIRS = bitmaps posix bin_PROGRAMS = aegisub @@ -15,7 +13,7 @@ DARCSREV := $(strip $(shell head -n 1 ../_darcs/inventory 2>/dev/null)) REVISION := $(if $(SVNREV),-DBUILD_SVN_REVISION=$(SVNREV)) $(if $(DARCSREV),-DBUILD_DARCS) BUILDINFO := -DBUILD_CREDIT="\"$(shell whoami)\"" $(REVISION) -AM_CPPFLAGST = -DAEGISUB -Iposix -include posix/defines.h $(BUILDINFO) +AM_CPPFLAGS = -DAEGISUB -Iposix -include posix/defines.h $(BUILDINFO) aegisub_LDADD = posix/libposix.a ../FexTrackerSource/libfex.a ../csri/lib/.libs/libcsri.a aegisub_LDFLAGS = @@ -50,7 +48,7 @@ AUTOMATION += auto4_auto3.cpp endif if WITH_AUTO4_RUBY AUTOMATION += auto4_ruby_assfile.cpp auto4_ruby.cpp auto4_ruby_dialog.cpp -AM_CPPFLAGS = $(shell ruby -r rbconfig -e "p '-I' + Config::CONFIG['rubylibdir'] + '/' + Config::CONFIG['arch'] ") $(AM_CPPFLAGST) +AM_CPPFLAGS += $(shell ruby -r rbconfig -e "p '-I' + Config::CONFIG['rubylibdir'] + '/' + Config::CONFIG['arch'] ") $(AM_CPPFLAGST) endif if HAVE_HUNSPELL diff --git a/aegisub/audio_player_alsa.cpp b/aegisub/audio_player_alsa.cpp index 7dbafe0d4..84fdede52 100644 --- a/aegisub/audio_player_alsa.cpp +++ b/aegisub/audio_player_alsa.cpp @@ -430,6 +430,7 @@ void AlsaPlayer::async_write_handler(snd_async_handler_t *pcm_callback) void *buf = malloc(player->period * player->bpf); while (frames >= player->period) { + unsigned long start = player->cur_frame; player->provider->GetAudioWithVolume(buf, player->cur_frame, player->period, player->volume); snd_pcm_writei(player->pcm_handle, buf, player->period); player->cur_frame += player->period; diff --git a/aegisub/auto4_lua_scriptreader.h b/aegisub/auto4_lua_scriptreader.h index b580bd32d..273f434bc 100644 --- a/aegisub/auto4_lua_scriptreader.h +++ b/aegisub/auto4_lua_scriptreader.h @@ -51,4 +51,6 @@ namespace Automation4 { static const char* reader_func(lua_State *L, void *data, size_t *size); }; -}; \ No newline at end of file +}; + + diff --git a/aegisub/factory.h b/aegisub/factory.h index ec96232ad..c79a36ce4 100644 --- a/aegisub/factory.h +++ b/aegisub/factory.h @@ -40,6 +40,8 @@ /////////// // Headers #include +#include +#include /////////////////