1 diff -ur a/src/agnxlib.c b/src/agnxlib.c
2 --- a/src/agnxlib.c 2011-01-08 04:18:29.000000000 +0100
3 +++ b/src/agnxlib.c 2011-05-30 16:23:07.000000000 +0200
5 "of the main Agena library folder by adding the following line to your profile\n"
7 #if defined(__unix__) || defined(__APPLE__) || defined(__HAIKU__)
8 - " export AGENAPATH=/usr/agena/lib\n\n"
9 + " export AGENAPATH=/usr/lib/agena\n\n"
12 " set AGENAPATH=<drive letter>:/agena/lib\n\n"
15 #if defined(__unix__) || defined(__APPLE__)
16 /* set default path if path could not be determined before */
17 - if (access("/usr/agena/lib", 00|04) != -1) {
18 - lua_pushstring(L, "/usr/agena/lib");
19 + if (access("/usr/lib/agena", 00|04) != -1) {
20 + lua_pushstring(L, "/usr/lib/agena");
21 lua_setglobal(L, "libname");
22 - debuginfo(debug, " libname set to default path /usr/agena/lib.\n");
23 + debuginfo(debug, " libname set to default path /usr/lib/agena.\n");
26 #elif defined(__HAIKU__)
27 diff -ur a/src/config.c b/src/config.c
28 --- a/src/config.c 2011-01-01 21:31:52.000000000 +0100
29 +++ b/src/config.c 2011-05-30 16:21:01.000000000 +0200
31 #if defined(__DJGPP__) || defined(__APPLE__) || defined(__HAIKU__)
32 fprintf(fp, "#define ACTUAL_SIZE_OF_C_LONG %ld\n", sizeof(long));
34 - fprintf(fp, "#define ACTUAL_SIZE_OF_C_LONG %d\n", sizeof(long));
35 + fprintf(fp, "#define ACTUAL_SIZE_OF_C_LONG %ld\n", sizeof(long));
37 fprintf(fp, "#ifdef NECESSARY_SIZE_OF_C_LONG\n"
38 "# undef NECESSARY_SIZE_OF_C_LONG\n"