[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Libcdio-devel] How to handle getopt.c for those systems that don't have
From: |
R. Bernstein |
Subject: |
[Libcdio-devel] How to handle getopt.c for those systems that don't have... |
Date: |
Tue, 4 Oct 2005 21:03:14 -0400 |
In removing libpopt (used in src/) and replacing with getopt, Peter
J. Creath noted that the libcdio configure test is actually for GNU
getopt, which has slightly different (irrelevant) behavior than
standard getopt.
And he notes that FreeBSD 4.9 and earlier doesn't keep the information
in <getopt.h>, but in <unistd.h>.
So in src/util.h, instead of
#include <popt.h>
one might have:
#if defined(__FreeBSD__)
#if (OSVERSION > 500000)
#include "getopt.h"
#else
#include "unistd.h"
#endif
#else
#include <getopt.h>
#endif
Any comments?
- [Libcdio-devel] How to handle getopt.c for those systems that don't have...,
R. Bernstein <=