"Sebastian Reitenbach" <[email protected]> writes:

Hi Sebastian:

> but since you don't include a header where arc4random is defined, I'd
> guess you still get a warning when compiling, something like implicit
> declaration of arc4random.  What's the name and location of that
> header file?

On no system arc4random is defined in
/usr/include/bsd/stdlib.h. However, I believe you should just include
bsd/bsd.h. Here is the content of the header file:

,----[ Content of /usr/include/bsd/bsd.h ]
|  *    derived from this software without specific prior written permission.
|  *
|  * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES,
|  * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
|  * AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL
|  * THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
|  * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
|  * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
|  * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|  * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
|  * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
|  * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|  */
| 
| #ifndef LIBBSD_H
| #define LIBBSD_H
| 
| /*
|  * Include all bsd compat headers.
|  */
| 
| #include <bsd/sys/cdefs.h>
| #include <bsd/sys/queue.h>
| #include <bsd/sys/tree.h>
| #include <bsd/netinet/ip_icmp.h>
| #include <bsd/stdlib.h>
| #include <bsd/string.h>
| #include <bsd/err.h>
| #include <bsd/getopt.h>
| #include <bsd/md5.h>
| 
| #endif
`----

Charles

-- 
LILO, you've got me on my knees!
(from David Black, [email protected], with apologies to Derek and the
Dominos, and Werner Almsberger)

Attachment: signature.asc
Description: PGP signature

_______________________________________________
Discuss-gnustep mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/discuss-gnustep

Reply via email to