updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / agena / arch.patch
blob8a6d3c43bfe16f8e9f1bc7bbdcdf01146e380eba
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
4 @@ -738,7 +738,7 @@
5 "of the main Agena library folder by adding the following line to your profile\n"
6 "file:\n\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"
10 "in UNIX.\n\n"
11 #else
12 " set AGENAPATH=<drive letter>:/agena/lib\n\n"
13 @@ -977,10 +977,10 @@
14 apath = NULL;
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");
24 return;
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
30 @@ -136,7 +136,7 @@
31 #if defined(__DJGPP__) || defined(__APPLE__) || defined(__HAIKU__)
32 fprintf(fp, "#define ACTUAL_SIZE_OF_C_LONG %ld\n", sizeof(long));
33 #else
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));
36 #endif
37 fprintf(fp, "#ifdef NECESSARY_SIZE_OF_C_LONG\n"
38 "# undef NECESSARY_SIZE_OF_C_LONG\n"