A pair of really tiny patches that not only allow it all to compile
but also IT ACTUALLY WORKS! FreeBSD with options JREMOD now runs with no entries in the devsw tables prior to the devices puting their own entries there.. Thanks to bde and terry for thoughts and comments. next stop 'Real' devfs support in devices.
This commit is contained in:
parent
0b44d3a9f9
commit
de1676f933
@ -25,7 +25,7 @@
|
||||
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
|
||||
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*
|
||||
* $Id: pcaudio.c,v 1.18 1995/11/28 09:41:27 julian Exp $
|
||||
* $Id: pcaudio.c,v 1.19 1995/11/29 10:47:47 julian Exp $
|
||||
*/
|
||||
|
||||
#include "pca.h"
|
||||
@ -49,14 +49,14 @@
|
||||
|
||||
#include <i386/isa/sound/ulaw.h>
|
||||
|
||||
#ifdef DEVFS
|
||||
#include <sys/devfsext.h>
|
||||
#endif /* DEVFS */
|
||||
#ifdef JREMOD
|
||||
#include <sys/conf.h>
|
||||
#include <sys/kernel.h>
|
||||
#ifdef DEVFS
|
||||
#include <sys/devfsext.h>
|
||||
#endif /*DEVFS*/
|
||||
#define CDEV_MAJOR 24
|
||||
#endif /*JREMOD*/
|
||||
#endif /* JREMOD */
|
||||
|
||||
#define BUF_SIZE 8192
|
||||
#define SAMPLE_RATE 8000
|
||||
|
@ -30,7 +30,7 @@
|
||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $Id: kern_conf.c,v 1.3 1995/10/04 08:58:00 julian Exp $
|
||||
* $Id: kern_conf.c,v 1.4 1995/11/29 12:38:46 julian Exp $
|
||||
*/
|
||||
|
||||
#include <sys/param.h>
|
||||
@ -60,7 +60,7 @@ int TTYPE##_add(dev_t *descrip, \
|
||||
return ENFILE; \
|
||||
} \
|
||||
} else { /* assign */ \
|
||||
i = major(descrip); \
|
||||
i = major(*descrip); \
|
||||
if (i < 0 || i >= NXXXDEV) { \
|
||||
return EINVAL; \
|
||||
} \
|
||||
|
Loading…
Reference in New Issue
Block a user