Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
John McEleney
/
mailutils
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Commit
c506ffde
...
c506ffde778c2dc19865fc9de0589025118e3be1
authored
2001-07-09 07:43:39 +0000
by
Sergey Poznyakoff
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
display compilation options (WITH_ flags)
1 parent
992e6e78
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
1 deletions
mail/version.c
mail/version.c
View file @
c506ffd
...
...
@@ -21,10 +21,33 @@
* ve[rsion]
*/
static
char
*
with_defs
[]
=
{
#ifdef WITH_PTHREAD
"PTHREAD"
,
#endif
#ifdef WITH_BDB2
"BDB2"
,
#endif
#ifdef WITH_READLINE
"READLINE"
,
#endif
NULL
};
int
mail_version
(
int
argc
,
char
**
argv
)
{
fprintf
(
ofile
,
"%s
\n
"
,
argp_program_version
);
fprintf
(
ofile
,
"%s"
,
argp_program_version
);
if
(
with_defs
[
0
]
!=
NULL
)
{
int
i
;
fprintf
(
ofile
,
" ("
);
for
(
i
=
0
;
with_defs
[
i
];
i
++
)
fprintf
(
ofile
,
" %s"
,
with_defs
[
i
]);
fprintf
(
ofile
,
" )"
);
}
fprintf
(
ofile
,
"
\n
"
);
return
0
;
}
...
...
Please
register
or
sign in
to post a comment