summaryrefslogtreecommitdiff
path: root/wm/fvwm/patches/patch-ab
blob: 88591d449f8565014dc8129dfcd5545c2997af1c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
$NetBSD: patch-ab,v 1.4 2013/01/20 07:09:29 mef Exp $

(1) 
Convert install path from fvwm to fvwm2
This can not be done with 
CONFIGURE_ARGS+=        --datarootdir=${PREFIX:Q}/share/fvwm2
this will install fvwm2/fvwm.

(2)
Avoid following problem on NetBSD/amd64 6.99.16 with clang
+-----------------
| conftest.c:38:3: error: non-void function 'main' should return a value [-Wreturn-type]
|   return;
|   ^
+-----------------

--- configure.orig	2013-01-06 10:03:11.000000000 +0900
+++ configure	2013-01-06 10:08:01.000000000 +0900
@@ -3179,7 +3179,7 @@ fi
 
 
 # Define the identity of the package.
- PACKAGE=fvwm
+ PACKAGE=fvwm2
  VERSION=${version}
 
 
@@ -6492,7 +6492,7 @@ int i; static j; int *p; char *c;
   switch (*p = p = *c) { case 0: printf("%Q", c, p); }
   *c = &i; c = p;
   while (1 || (unsigned int)3 >= 0 || ((int)-1) == ((unsigned int)1));
-  return;
+  return -1;
   ;
   return 0;
 }