 +        }
 +
 +        rtn = mkdir(target, S_IRWXU | S_IRWXG);
-+        if (rtn != 0) {
++        if (rtn != 0)
 +          fprintf(stderr, "SDL: mkdir failed: %s\n", strerror(errno));
-+        }
++
 +        rtn = tar_extract_all(tar, (char*)target);
 +        if (rtn != 0) {
 +          fprintf(stderr, "SDL: tar_extract_all failed\n");

 #endif
diff --git a/src/audio/nacl/SDL_naclaudio.cc b/src/audio/nacl/SDL_naclaudio.cc
new file mode 100644
index 0000000..908a498
--- /dev/null
+++ b/src/audio/nacl/SDL_naclaudio.cc
@@ -0,0 +1,150 @@
+#include "SDL_config.h"
+#include "SDL_naclaudio.h"
+

+#define _THIS	SDL_AudioDevice *_this
+
+struct SDL_PrivateAudioData {
+  SDL_mutex* mutex;
+  int sample_frame_count;
+  PP_Resource audio;
+};
