Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
34ce6b41
Commit
34ce6b41
authored
Mar 20, 2004
by
Bruce Momjian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Always test getpwuid_r because HEAD always uses *_r if it finds them.
Not an issue for 7.4.X.
parent
aaf54d99
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
63 additions
and
61 deletions
+63
-61
configure
configure
+60
-59
configure.in
configure.in
+3
-2
No files found.
configure
View file @
34ce6b41
...
...
@@ -13247,65 +13247,6 @@ cat >>confdefs.h <<\_ACEOF
#define GETPWUID_THREADSAFE 1
_ACEOF
else
echo
"
$as_me
:
$LINENO
: checking whether getpwuid_r takes a fifth argument"
>
&5
echo
$ECHO_N
"checking whether getpwuid_r takes a fifth argument...
$ECHO_C
"
>
&6
if
test
"
${
pgac_func_getpwuid_r_5arg
+set
}
"
=
set
;
then
echo
$ECHO_N
"(cached)
$ECHO_C
"
>
&6
else
cat
>
conftest.
$ac_ext
<<
_ACEOF
#line
$LINENO
"configure"
#include "confdefs.h"
#include <sys/types.h>
#include <pwd.h>
#ifdef F77_DUMMY_MAIN
# ifdef __cplusplus
extern "C"
# endif
int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{
uid_t uid;
struct passwd *space;
char *buf;
size_t bufsize;
struct passwd **result;
getpwuid_r(uid, space, buf, bufsize, result);
;
return 0;
}
_ACEOF
rm
-f
conftest.
$ac_objext
if
{
(
eval echo
"
$as_me
:
$LINENO
:
\"
$ac_compile
\"
"
)
>
&5
(
eval
$ac_compile
)
2>&5
ac_status
=
$?
echo
"
$as_me
:
$LINENO
:
\$
? =
$ac_status
"
>
&5
(
exit
$ac_status
)
;
}
&&
{
ac_try
=
'test -s conftest.$ac_objext'
{
(
eval echo
"
$as_me
:
$LINENO
:
\"
$ac_try
\"
"
)
>
&5
(
eval
$ac_try
)
2>&5
ac_status
=
$?
echo
"
$as_me
:
$LINENO
:
\$
? =
$ac_status
"
>
&5
(
exit
$ac_status
)
;
}
;
}
;
then
pgac_func_getpwuid_r_5arg
=
yes
else
echo
"
$as_me
: failed program was:"
>
&5
cat
conftest.
$ac_ext
>
&5
pgac_func_getpwuid_r_5arg
=
no
fi
rm
-f
conftest.
$ac_objext
conftest.
$ac_ext
fi
echo
"
$as_me
:
$LINENO
: result:
$pgac_func_getpwuid_r_5arg
"
>
&5
echo
"
${
ECHO_T
}
$pgac_func_getpwuid_r_5arg
"
>
&6
if
test
x
"
$pgac_func_getpwuid_r_5arg
"
=
xyes
;
then
cat
>>
confdefs.h
<<
\
_ACEOF
#define GETPWUID_R_5ARG
_ACEOF
fi
fi
if
test
"
$enable_thread_safety
"
=
yes
-a
"
$GETHOSTBYNAME_THREADSAFE
"
=
yes
;
then
...
...
@@ -13401,6 +13342,66 @@ done
CFLAGS
=
"
$_CFLAGS
"
LIBS
=
"
$_LIBS
"
echo
"
$as_me
:
$LINENO
: checking whether getpwuid_r takes a fifth argument"
>
&5
echo
$ECHO_N
"checking whether getpwuid_r takes a fifth argument...
$ECHO_C
"
>
&6
if
test
"
${
pgac_func_getpwuid_r_5arg
+set
}
"
=
set
;
then
echo
$ECHO_N
"(cached)
$ECHO_C
"
>
&6
else
cat
>
conftest.
$ac_ext
<<
_ACEOF
#line
$LINENO
"configure"
#include "confdefs.h"
#include <sys/types.h>
#include <pwd.h>
#ifdef F77_DUMMY_MAIN
# ifdef __cplusplus
extern "C"
# endif
int F77_DUMMY_MAIN() { return 1; }
#endif
int
main ()
{
uid_t uid;
struct passwd *space;
char *buf;
size_t bufsize;
struct passwd **result;
getpwuid_r(uid, space, buf, bufsize, result);
;
return 0;
}
_ACEOF
rm
-f
conftest.
$ac_objext
if
{
(
eval echo
"
$as_me
:
$LINENO
:
\"
$ac_compile
\"
"
)
>
&5
(
eval
$ac_compile
)
2>&5
ac_status
=
$?
echo
"
$as_me
:
$LINENO
:
\$
? =
$ac_status
"
>
&5
(
exit
$ac_status
)
;
}
&&
{
ac_try
=
'test -s conftest.$ac_objext'
{
(
eval echo
"
$as_me
:
$LINENO
:
\"
$ac_try
\"
"
)
>
&5
(
eval
$ac_try
)
2>&5
ac_status
=
$?
echo
"
$as_me
:
$LINENO
:
\$
? =
$ac_status
"
>
&5
(
exit
$ac_status
)
;
}
;
}
;
then
pgac_func_getpwuid_r_5arg
=
yes
else
echo
"
$as_me
: failed program was:"
>
&5
cat
conftest.
$ac_ext
>
&5
pgac_func_getpwuid_r_5arg
=
no
fi
rm
-f
conftest.
$ac_objext
conftest.
$ac_ext
fi
echo
"
$as_me
:
$LINENO
: result:
$pgac_func_getpwuid_r_5arg
"
>
&5
echo
"
${
ECHO_T
}
$pgac_func_getpwuid_r_5arg
"
>
&6
if
test
x
"
$pgac_func_getpwuid_r_5arg
"
=
xyes
;
then
cat
>>
confdefs.h
<<
\
_ACEOF
#define GETPWUID_R_5ARG
_ACEOF
fi
else
# do not use values from template file
THREAD_CPPFLAGS
=
...
...
configure.in
View file @
34ce6b41
dnl Process this file with autoconf to produce a configure script.
dnl $PostgreSQL: pgsql/configure.in,v 1.32
0 2004/03/20 15:39:27
momjian Exp $
dnl $PostgreSQL: pgsql/configure.in,v 1.32
1 2004/03/20 16:11:22
momjian Exp $
dnl
dnl Developers, please strive to achieve this order:
dnl
...
...
@@ -999,7 +999,6 @@ AC_DEFINE(STRERROR_THREADSAFE, 1, [Define if strerror is not thread safe])
fi
if test "$enable_thread_safety" = yes -a "$GETPWUID_THREADSAFE" = yes ; then
AC_DEFINE(GETPWUID_THREADSAFE, 1, [Define if getpwuid is not thread safe])
else PGAC_FUNC_GETPWUID_R_5ARG
fi
if test "$enable_thread_safety" = yes -a "$GETHOSTBYNAME_THREADSAFE" = yes ; then
AC_DEFINE(GETHOSTBYNAME_THREADSAFE, 1, [Define if gethostbyname is not thread safe])
...
...
@@ -1014,6 +1013,8 @@ AC_CHECK_FUNCS([strerror_r getpwuid_r gethostbyname_r])
CFLAGS="$_CFLAGS"
LIBS="$_LIBS"
PGAC_FUNC_GETPWUID_R_5ARG
else
# do not use values from template file
THREAD_CPPFLAGS=
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment