}
#ifdef SunOS
fconvert(value, decimal_pt, &deci_pt, &sign, buf);
+#elif defined(__FreeBSD__)
+ snprintf(buf, decimal_pt, "%f", value);
#else
/* this version, available on the HP and AIX machine is not reentrant. */
XmNy, &base_y,
XmNwidth, &base_width,
XmNheight, &base_height,
- 0) ;
+ NULL) ;
bx = (int) base_x ;
by = (int) base_y ;
bw = (int) base_width ;
XmNy, &popup_y,
XmNwidth, &popup_width,
XmNheight, &popup_height,
- 0) ;
+ NULL) ;
px = (int) popup_x ;
py = (int) popup_y ;
XtVaGetValues(popup,
XmNwidth, &popup_width,
XmNheight, &popup_height,
- 0) ;
+ NULL) ;
/* Make sure frame does not go off side of screen */
int
GettyRunning( struct display *d )
{
+#if defined(__FreeBSD__)
+ struct utmpx utmp; /* local struct for new entry */
+ struct utmpx *u; /* pointer to entry in utmp file */
+#else
struct utmp utmp; /* local struct for new entry */
struct utmp *u; /* pointer to entry in utmp file */
+#endif
int rvalue; /* return value (TRUE or FALSE) */
char buf[32];
return FALSE;
+#if defined(__FreeBSD__)
+ bzero(&utmp, sizeof(struct utmpx));
+#else
bzero(&utmp, sizeof(struct utmp));
+#endif
#ifdef _AIX
if (!strcmp(d->gettyLine,"console")) {