Skip to content

Instantly share code, notes, and snippets.

@keturn
Created November 11, 2009 20:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save keturn/232245 to your computer and use it in GitHub Desktop.
Save keturn/232245 to your computer and use it in GitHub Desktop.
sleeptracker patch
diff -ur napkin-0.0/lib/hypnodata.cc napkin-patched/lib/hypnodata.cc
--- napkin-0.0/lib/hypnodata.cc 2008-04-04 15:10:03.000000000 -0700
+++ napkin-patched/lib/hypnodata.cc 2009-11-11 10:52:46.000000000 -0800
@@ -1,3 +1,6 @@
+#include <cstdlib>
+#include <cstdio>
+#include <cstring>
#include <napkin/exception.h>
#include <napkin/util.h>
#include <napkin/types.h>
diff -ur napkin-0.0/lib/st-decode.cc napkin-patched/lib/st-decode.cc
--- napkin-0.0/lib/st-decode.cc 2008-04-05 02:41:53.000000000 -0700
+++ napkin-patched/lib/st-decode.cc 2009-11-11 10:54:26.000000000 -0800
@@ -1,3 +1,5 @@
+#include <stdint.h>
+#include <cstring>
#include <stdexcept>
#include <numeric>
#include <napkin/exception.h>
diff -ur napkin-0.0/src/db.cc napkin-patched/src/db.cc
--- napkin-0.0/src/db.cc 2008-04-04 16:12:28.000000000 -0700
+++ napkin-patched/src/db.cc 2009-11-11 10:49:44.000000000 -0800
@@ -1,3 +1,4 @@
+#include <cstdlib>
#include <unistd.h>
#include <sys/stat.h>
#include <sys/types.h>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment