socket.c 1.3 KB

123456789101112131415161718192021222324252627282930
  1. /***********************************************************************
  2. * *
  3. * This software is part of the ast package *
  4. * Copyright (c) 1994-2011 AT&T Intellectual Property *
  5. * Copyright (c) 2020-2022 Contributors to ksh 93u+m *
  6. * and is licensed under the *
  7. * Eclipse Public License, Version 2.0 *
  8. * *
  9. * A copy of the License is available at *
  10. * https://www.eclipse.org/org/documents/epl-2.0/EPL-2.0.html *
  11. * (with md5 checksum 84283fa8859daf213bdda5a9f8d1be1d) *
  12. * *
  13. * Glenn Fowler <gsf@research.att.com> *
  14. * Martijn Dekker <martijn@inlv.org> *
  15. * *
  16. ***********************************************************************/
  17. /*
  18. * small test for -lnsl
  19. */
  20. #ifndef socket
  21. #include <sys/types.h>
  22. #include <sys/socket.h>
  23. #endif
  24. int
  25. main()
  26. {
  27. return socket(0, 0, 0) < 0;
  28. }