This is the mail archive of the
newlib@sourceware.org
mailing list for the newlib project.
New contributor o/ hello, and small diff.
- From: "Dionna Amalie Glaze via newlib" <newlib at sourceware dot org>
- To: newlib at sourceware dot org
- Date: Mon, 26 Jun 2017 11:45:08 -0700
- Subject: New contributor o/ hello, and small diff.
- Authentication-results: sourceware.org; auth=none
- Reply-to: Dionna Amalie Glaze <dionnaglaze at google dot com>
Hi y'all! Thank you so much for your work on newlib. It's a fantastic
platform to work with :)
I am looking at getting access to the gethostname symbol in
sys/unistd.h outside of __CYGWIN__ or __rtems__. The following
platforms by C preprocessor symbol would be a helpful addition:
__USE_BSD, __USE_UNIX98, __USE_XOPEN2K
In diff form,
==== /home/dionnaglaze/newlib-cygwin/newlib/src/newlib/libc/include/sys/unistd.h
====
247c247,253
< #if !(defined (_WINSOCK_H) || defined (_WINSOCKAPI_) || defined
(__USE_W32_SOCKETS))
---
> char * _EXFUN(mktemp, (char *));
> #endif
>
> #if defined __USE_BSD || defined __USE_UNIX98 || defined __USE_XOPEN2K || \
> ((defined(__CYGWIN__) || defined(__rtems__)) && \
> !(defined (_WINSOCK_H) || defined (_WINSOCKAPI_) || \
> defined (__USE_W32_SOCKETS)))
250,251d255
< #endif
< char * _EXFUN(mktemp, (char *));
What is y'all's preferred way to submit such a change?
Thanks!
--
-Dionna Glaze, PhD (she/her)