Explicitly mark main() as public in executables to avoid an HP-UX

ld warning.
This commit is contained in:
Todd C. Miller
2012-10-02 15:08:02 -04:00
parent 09140fd1a0
commit a3a1574cdf
15 changed files with 28 additions and 0 deletions

View File

@@ -32,6 +32,8 @@
#include "missing.h"
__dso_public int main(int argc, char *argv[]);
int
main(int argc, char *argv[])
{

View File

@@ -32,6 +32,8 @@
#include "missing.h"
__dso_public int main(int argc, char *argv[]);
int
main(int argc, char *argv[])
{

View File

@@ -20,6 +20,8 @@
# include "compat/fnmatch.h"
#endif
__dso_public int main(int argc, char *argv[]);
int
main(int argc, char *argv[])
{

View File

@@ -33,6 +33,7 @@ struct gl_entry {
};
int test_glob(struct gl_entry *);
__dso_public int main(int argc, char *argv[]);
int
main(int argc, char **argv)