Permalink
Browse files

Added (and using) a LIBDIR constant

  • Loading branch information...
1 parent 1d1b4c9 commit 7f6378e416573a0adfef85c2f5e3ad55048ffe82 @khorben khorben committed Dec 24, 2012
Showing with 4 additions and 1 deletion.
  1. +4 −1 tools/helper.c
View
@@ -41,6 +41,9 @@ struct _Panel
#ifndef PREFIX
# define PREFIX "/usr/local"
#endif
+#ifndef LIBDIR
+# define LIBDIR PREFIX "/lib"
+#endif
static char const * _authors[] =
@@ -77,7 +80,7 @@ static void _helper_shutdown_dialog(Panel * panel);
/* applet_list */
static int _applet_list(void)
{
- char const path[] = PREFIX "/lib/Panel/applets";
+ char const path[] = LIBDIR "/Panel/applets";
DIR * dir;
struct dirent * de;
size_t len;

0 comments on commit 7f6378e

Please sign in to comment.