Thu Jan 12 23:06:23 2017 UTC ()
need stddef.h for offsetof


(christos)
diff -r1.4 -r1.5 src/external/bsd/ppp/dist/pppd/pppd.h

cvs diff -r1.4 -r1.5 src/external/bsd/ppp/dist/pppd/pppd.h (expand / switch to unified diff)

--- src/external/bsd/ppp/dist/pppd/pppd.h 2014/10/25 21:11:37 1.4
+++ src/external/bsd/ppp/dist/pppd/pppd.h 2017/01/12 23:06:23 1.5
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1/* $NetBSD: pppd.h,v 1.4 2014/10/25 21:11:37 christos Exp $ */ 1/* $NetBSD: pppd.h,v 1.5 2017/01/12 23:06:23 christos Exp $ */
2 2
3/* 3/*
4 * pppd.h - PPP daemon global declarations. 4 * pppd.h - PPP daemon global declarations.
5 * 5 *
6 * Copyright (c) 1984-2000 Carnegie Mellon University. All rights reserved. 6 * Copyright (c) 1984-2000 Carnegie Mellon University. All rights reserved.
7 * 7 *
8 * Redistribution and use in source and binary forms, with or without 8 * Redistribution and use in source and binary forms, with or without
9 * modification, are permitted provided that the following conditions 9 * modification, are permitted provided that the following conditions
10 * are met: 10 * are met:
11 * 11 *
12 * 1. Redistributions of source code must retain the above copyright 12 * 1. Redistributions of source code must retain the above copyright
13 * notice, this list of conditions and the following disclaimer. 13 * notice, this list of conditions and the following disclaimer.
14 * 14 *
@@ -43,26 +43,27 @@ @@ -43,26 +43,27 @@
43 * 43 *
44 * Id: pppd.h,v 1.96 2008/06/23 11:47:18 paulus Exp  44 * Id: pppd.h,v 1.96 2008/06/23 11:47:18 paulus Exp
45 */ 45 */
46 46
47/* 47/*
48 * TODO: 48 * TODO:
49 */ 49 */
50 50
51#ifndef __PPPD_H__ 51#ifndef __PPPD_H__
52#define __PPPD_H__ 52#define __PPPD_H__
53 53
54#include <stdio.h> /* for FILE */ 54#include <stdio.h> /* for FILE */
55#include <limits.h> /* for NGROUPS_MAX */ 55#include <limits.h> /* for NGROUPS_MAX */
 56#include <stddef.h> /* offsetof() */
56#include <sys/param.h> /* for MAXPATHLEN and BSD4_4, if defined */ 57#include <sys/param.h> /* for MAXPATHLEN and BSD4_4, if defined */
57#include <sys/types.h> /* for u_int32_t, if defined */ 58#include <sys/types.h> /* for u_int32_t, if defined */
58#include <sys/time.h> /* for struct timeval */ 59#include <sys/time.h> /* for struct timeval */
59#include <net/ppp_defs.h> 60#include <net/ppp_defs.h>
60#include "patchlevel.h" 61#include "patchlevel.h"
61 62
62#if defined(__STDC__) 63#if defined(__STDC__)
63#include <stdarg.h> 64#include <stdarg.h>
64#define __V(x) x 65#define __V(x) x
65#else 66#else
66#include <varargs.h> 67#include <varargs.h>
67#define __V(x) (va_alist) va_dcl 68#define __V(x) (va_alist) va_dcl
68#define const 69#define const