diff --git a/configure.ac b/configure.ac index be5c3d5..d610f28 100644 --- a/configure.ac +++ b/configure.ac @@ -29,7 +29,7 @@ PKG_CHECK_MODULES(SPEK, [$pkg_modules]) AC_SUBST(SPEK_CFLAGS) AC_SUBST(SPEK_LIBS) -SPEK_PACKAGES="--pkg gtk+-2.0 --pkg gio-2.0 --pkg posix" +SPEK_PACKAGES="--pkg gtk+-2.0 --pkg gio-2.0" AC_SUBST(SPEK_PACKAGES) AC_CHECK_LIB(m, log10f) diff --git a/src/spek-pipeline.vala b/src/spek-pipeline.vala index 5b6aedc..b3f45cb 100644 --- a/src/spek-pipeline.vala +++ b/src/spek-pipeline.vala @@ -122,7 +122,7 @@ namespace Spek { float cf = 2f * (float) Math.PI / nfft; int size; - Posix.memset (output, 0, sizeof (float) * bands); + Memory.set (output, 0, sizeof (float) * bands); while ((size = cx.read (this.buffer)) > 0) { lock (quit) { @@ -177,7 +177,7 @@ namespace Spek { if (sample == samples) { return null; } - Posix.memset (output, 0, sizeof (float) * bands); + Memory.set (output, 0, sizeof (float) * bands); frames = 0; num_fft = 0; }