Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 272270 | Differences between
and this patch

Collapse All | Expand All

(-)motor-3.4.0.orig/configure.in (+5 lines)
Lines 1-6 Link Here
1
AC_INIT(aclocal.m4)
1
AC_INIT(aclocal.m4)
2
AM_INIT_AUTOMAKE(motor, "3.4.0")
2
AM_INIT_AUTOMAKE(motor, "3.4.0")
3
3
4
### AC_SYSTEM_EXTENSIONS
5
AC_GNU_SOURCE
6
4
AM_CONFIG_HEADER(config.h)
7
AM_CONFIG_HEADER(config.h)
5
8
6
AC_PROG_CC
9
AC_PROG_CC
Lines 59-64 Link Here
59
AC_MSG_RESULT($gnu_make)
62
AC_MSG_RESULT($gnu_make)
60
AC_DEFINE_UNQUOTED(GNUMAKE, "$gnu_make", [gnu make program name])
63
AC_DEFINE_UNQUOTED(GNUMAKE, "$gnu_make", [gnu make program name])
61
64
65
AC_CHECK_FUNCS([strndup])
66
62
AC_CHECK_LIB(ncurses, main,,
67
AC_CHECK_LIB(ncurses, main,,
63
    [AC_CHECK_LIB(curses, main,, AC_MSG_ERROR(The ncurses terminal library is required in order to build the program))])
68
    [AC_CHECK_LIB(curses, main,, AC_MSG_ERROR(The ncurses terminal library is required in order to build the program))])
64
69
(-)motor-3.4.0.orig/parser/include/strfn.h (+6 lines)
Lines 32-37 Link Here
32
#ifndef _STRFN_H
32
#ifndef _STRFN_H
33
#define _STRFN_H
33
#define _STRFN_H
34
34
35
36
#include "config.h"
37
35
/*****************************************************************************/
38
/*****************************************************************************/
36
/* Functions for manipulate strings */
39
/* Functions for manipulate strings */
37
/*****************************************************************************/
40
/*****************************************************************************/
Lines 48-54 Link Here
48
* Return value:
51
* Return value:
49
* 	char * - new string
52
* 	char * - new string
50
*/
53
*/
54
55
#ifndef HAVE_STRNDUP
51
char *strndup(const char *src, int size);
56
char *strndup(const char *src, int size);
57
#endif
52
58
53
/*
59
/*
54
* strappend - Append source string to destination.
60
* strappend - Append source string to destination.
(-)motor-3.4.0.orig/parser/src/strfn.c (+5 lines)
Lines 20-25 Link Here
20
*
20
*
21
*/
21
*/
22
22
23
24
#include "config.h"
25
23
#include <stdio.h>
26
#include <stdio.h>
24
#include <ctype.h>
27
#include <ctype.h>
25
#include <stdlib.h>
28
#include <stdlib.h>
Lines 44-49 Link Here
44
    return z;
47
    return z;
45
}
48
}
46
49
50
#ifndef HAVE_STRNDUP
47
/* string function */
51
/* string function */
48
char *strndup(const char *src, int size) {
52
char *strndup(const char *src, int size) {
49
    int s;
53
    int s;
Lines 56-61 Link Here
56
    
60
    
57
    return r;
61
    return r;
58
}
62
}
63
#endif
59
64
60
char *strappend(char *dst, const char *src) {
65
char *strappend(char *dst, const char *src) {
61
    int dlen;
66
    int dlen;

Return to bug 272270