summaryrefslogtreecommitdiff
path: root/common.h
diff options
context:
space:
mode:
authorGravatar waker <wakeroid@gmail.com>2012-05-22 22:21:55 +0200
committerGravatar waker <wakeroid@gmail.com>2012-05-22 22:21:55 +0200
commitdf0232d67ee161abc1c1341856a2c5e60b9e568a (patch)
tree52ae43f2f5edf3f5df424117872f1b2e4890d6e5 /common.h
parent8e34cdbf453a70e720913c6346ece19598c3ba54 (diff)
implemented playlist saving as atomic operation; fixed few PATH_MAX definitions
Diffstat (limited to 'common.h')
-rw-r--r--common.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/common.h b/common.h
index 39355685..0b8fe998 100644
--- a/common.h
+++ b/common.h
@@ -19,8 +19,11 @@
#define __COMMON_H
#include <limits.h>
-#ifndef PATH_MAX
-#define PATH_MAX 1024 /* max # of characters in a path name */
+#ifdef HAVE_CONFIG_H
+# include "config.h"
+#endif
+#if HAVE_SYS_SYSLIMITS_H
+#include <sys/syslimits.h>
#endif
#define min(x,y) ((x)<(y)?(x):(y))