mirror of
https://github.com/samba-team/samba.git
synced 2024-12-22 13:34:15 +03:00
r23175: Handle PKG_CONFIG_PATH not set yet - fixes warning in selftest.pl
This commit is contained in:
parent
a6293ab5cb
commit
222acbe33b
@ -258,6 +258,14 @@ int rep_socketpair(int d, int type, int protocol, int sv[2]);
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#ifndef _DEPRECATED_
|
||||
#if (__GNUC__ >= 3) && (__GNUC_MINOR__ >= 1 )
|
||||
#define _DEPRECATED_ __attribute__ ((deprecated))
|
||||
#else
|
||||
#define _DEPRECATED_
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#ifndef HAVE_VASPRINTF
|
||||
#define vasprintf rep_vasprintf
|
||||
int rep_vasprintf(char **ptr, const char *format, va_list ap) PRINTF_ATTRIBUTE(2,0);
|
||||
|
@ -180,10 +180,10 @@ sub process_file($$$)
|
||||
}
|
||||
|
||||
next unless ( $is_public || $line =~ /
|
||||
^void|^BOOL|^bool|^int|^struct|^char|^const|^\w+_[tT]\s|^uint|^unsigned|^long|
|
||||
^NTSTATUS|^ADS_STATUS|^enum\s.*\(|^DATA_BLOB|^WERROR|^XFILE|^FILE|^DIR|
|
||||
^double|^TDB_CONTEXT|^TDB_DATA|^TALLOC_CTX|^NTTIME|^FN_|^init_module|
|
||||
^GtkWidget|^GType|^smb_ucs2_t|^krb5_error_code
|
||||
(_DEPRECATED_ )?^(void|BOOL|bool|int|struct|char|const|\w+_[tT]\s|uint|unsigned|long|NTSTATUS|
|
||||
ADS_STATUS|enum\s.*\(|DATA_BLOB|WERROR|XFILE|FILE|DIR|
|
||||
double|TDB_CONTEXT|TDB_DATA|TALLOC_CTX|NTTIME|FN_|init_module|
|
||||
GtkWidget|GType|smb_ucs2_t|krb5_error_code)
|
||||
/xo);
|
||||
|
||||
next if ($line =~ /^int\s*main/);
|
||||
|
@ -519,7 +519,11 @@ if (defined($ENV{LD_LIBRARY_PATH})) {
|
||||
} else {
|
||||
$ENV{LD_LIBRARY_PATH} = "$old_pwd/bin/shared";
|
||||
}
|
||||
$ENV{PKG_CONFIG_PATH} = "$old_pwd/bin/pkgconfig:$ENV{PKG_CONFIG_PATH}";
|
||||
if (defined($ENV{PKG_CONFIG_PATH})) {
|
||||
$ENV{PKG_CONFIG_PATH} = "$old_pwd/bin/pkgconfig:$ENV{PKG_CONFIG_PATH}";
|
||||
} else {
|
||||
$ENV{PKG_CONFIG_PATH} = "$old_pwd/bin/pkgconfig";
|
||||
}
|
||||
$ENV{PATH} = "$old_pwd/bin:$ENV{PATH}";
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user