Mercurial > hg > toybox
comparison scripts/genconfig.sh @ 1662:c1715c752e89 draft
AOSP master has <pty.h> and builds netcat/nc.
author | Elliott Hughes <enh@google.com> |
---|---|
date | Fri, 16 Jan 2015 13:49:23 -0600 |
parents | a3500bd8b322 |
children |
comparison
equal
deleted
inserted
replaced
1661:d4bc084916fd | 1662:c1715c752e89 |
---|---|
56 if (0 != (a = getutxent())) return 0; | 56 if (0 != (a = getutxent())) return 0; |
57 return 1; | 57 return 1; |
58 } | 58 } |
59 EOF | 59 EOF |
60 | 60 |
61 # Android is missing shadow.h and pty.h | 61 # Android is missing shadow.h |
62 probesymbol TOYBOX_PTY -c << EOF | |
63 #include <pty.h> | |
64 int main(int argc, char *argv[]) { | |
65 int master; return forkpty(&master, 0, 0, 0); | |
66 } | |
67 EOF | |
68 | |
69 probesymbol TOYBOX_SHADOW -c << EOF | 62 probesymbol TOYBOX_SHADOW -c << EOF |
70 #include <shadow.h> | 63 #include <shadow.h> |
71 int main(int argc, char *argv[]) { | 64 int main(int argc, char *argv[]) { |
72 struct spwd *a = getspnam("root"); return 0; | 65 struct spwd *a = getspnam("root"); return 0; |
73 } | 66 } |