summaryrefslogtreecommitdiff
path: root/3rdparty/cmake/tests
diff options
context:
space:
mode:
authoreathenabot <eathenabot@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-05-31 05:02:00 +0000
committereathenabot <eathenabot@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-05-31 05:02:00 +0000
commit1566ff9160d32539b521645c78e25d2211f0fa92 (patch)
tree73604a711179639d109e3899b3de00e5d625277a /3rdparty/cmake/tests
parente7b059e2ddbd6f4b12ae78d6e1053a896f09c283 (diff)
downloadhercules-1566ff9160d32539b521645c78e25d2211f0fa92.tar.gz
hercules-1566ff9160d32539b521645c78e25d2211f0fa92.tar.bz2
hercules-1566ff9160d32539b521645c78e25d2211f0fa92.tar.xz
hercules-1566ff9160d32539b521645c78e25d2211f0fa92.zip
* Merged changes up to eAthena 15105.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@16171 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to '3rdparty/cmake/tests')
-rw-r--r--3rdparty/cmake/tests/HAVE_MONOTONIC_CLOCK.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/3rdparty/cmake/tests/HAVE_MONOTONIC_CLOCK.c b/3rdparty/cmake/tests/HAVE_MONOTONIC_CLOCK.c
new file mode 100644
index 000000000..ad460a1af
--- /dev/null
+++ b/3rdparty/cmake/tests/HAVE_MONOTONIC_CLOCK.c
@@ -0,0 +1,8 @@
+#include <sys/time.h>
+#include <time.h>
+#include <unistd.h>
+int main(int argc, char** argv)
+{
+ struct timespec tval;
+ return clock_gettime(CLOCK_MONOTONIC, &tval);
+}